Endpoint
/api/v2/tenants/{tenantId}/policies/management/{id}

Unassigns agent policies for resources.

Path Parameters
tenantId
string

id
string

Responses

OK

actualEntity
string

allowedMethods
array

cookies
object

entity
string

headers
object

length
integer

links
array

metadata
object

status
integer

statusInfo
object

statusInfo.family
statusInfo.reasonPhrase
statusInfo.statusCode
stringHeaders
object

{
  "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
tenantId
string

id
string

Responses

OK

actions
array

actions.action
actions.forceAssignOrUnassign
actions.items
executionOrder
integer

id
integer

matchType
string

(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.

name
string

Name of the policy.

resourceType
string

Type of resource. Example: DEVICE, VOLUME, VPN, XENSERVER

rules
array

(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

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"
}