Assign agent policy for resources

The endpoint to assign agent policy for resources.

Leave Feedback

URL

POST https://{api-url}/api/v2/tenants/{tenantId}/agentPolicies/{policyId}/devices

Sample URLs

https://{api-url}/api/v2/tenants/client_5/agentPolicies/1/devices

Status code

200 OK

Sample request

[
	{
		"id": "042761ba-542e-4a7a-8e38-3ebbea7eeb16"
	},
	{
		"id": "023471da-698b-3a2e-1e93-6dbaca8eea23"
	},
	{
		"id": "855eb82e-3064-40a1-a26e-77efabe300da"
	}
]

Sample response

{
	"failedEntities": {
		"023471da-698b-3a2e-1e93-6dbaca8eea23": "No device 023471da-698b-3a2e-1e93-6dbaca8eea23 found under client client_5"
	},
	"failedCount": 1,
	"successCount": 2
}