Endpoint
/api/v2/tenants/{tenantId}/policies/management/{id}
Unassigns agent policies for resources.
Path Parameters
tenantIdstring
idstring
Responses
OK
actualEntitystring
allowedMethodsarray
cookiesobject
entitystring
headersobject
lengthinteger
linksarray
metadataobject
statusinteger
stringHeadersobject
{
"actualEntity": "Removed policy with id: 2325",
"allowedMethods": [],
"cookies": {},
"entity": "Removed policy with id: 2325",
"headers": {},
"length": -1,
"links": [],
"metadata": {},
"status": 200,
"statusInfo": {
"family": "SUCCESSFUL",
"reasonPhrase": "OK",
"statusCode": 200
},
"stringHeaders": {}
}
Endpoint
/api/v2/tenants/{tenantId}/policies/management/{id}
Gets device management policy details.
Path Parameters
tenantIdstring
idstring
Responses
OK
executionOrderinteger
idinteger
matchTypestring
(Optional) The type of match: -To match all the filter conditions, provide matchType: ALL. - To match any one of the filter conditions, provide matchType: ANY.
namestring
Name of the policy.
resourceTypestring
Type of resource. Example: DEVICE, VOLUME, VPN, XENSERVER
rulesarray
(Optional) Filter devices with specific attributes: - Attribute name of device. Example: Name, Operating System. Attribute names change with device types. - Matching parameter. Supported operators are: Equals, Contains, Not Contains, Starts with, Ends with, Regex. Learn more about Regex. - Type of resource
Child Parameters
- rules.filterType
- rules.id
- rules.isNativeAttribute
- rules.key
- rules.operator
- rules.resourceType
- rules.value
{
"actions": [
{
"action": "ASSIGN MONITORINGTEMPLATE",
"forceAssignOrUnassign": false,
"items": [
{
"instances": {},
"item": "4053",
"parameters": {
"Data Bytes": "64",
"Packet Count": "3",
"Packet interval": "1000"
}
}
]
},
{
"action": "ASSIGN KNOWLEDGEARTICLE",
"forceAssignOrUnassign": true,
"items": [
{
"item": "7188"
}
]
},
{
"action": "Assign Jobs",
"forceAssignOrUnassign": true,
"items": [
{
"item": "asset info",
"itemType": "assetinfo",
"itemUid": "c072cd67-779a-4206-a3d9-7c761fd563d8"
}
]
},
{
"action": "Assign Availability Rule",
"items": [
{
"item": "AND"
}
]
},
{
"action": "ASSIGN CREDENTIALSET",
"forceAssignOrUnassign": true,
"items": [
{
"item": "36218"
}
]
},
{
"action": "ASSIGN CUSTOMATTRIBUTES",
"forceAssignOrUnassign": true,
"items": [
{
"item": "264313"
}
]
}
],
"id": 85908,
"matchType": "ALL",
"name": "all actions",
"rules": [
{
"id": 182208,
"isNativeAttribute": true,
"key": "Name",
"operator": "Contains",
"resourceType": "DEVICE",
"value": "test"
}
],
"uid": "POLICY-4eb7d892-91dc-4ba9-bc92-980effbea64f"
}