Get device management policies

This endpoint is used to retrieve device management policies of a tenant without pagination.

Leave Feedback

URL

GET https://{api-url}/api/v2/tenants/{tenantId}/policies/management

Sample URLs

https://{api-url}/api/v2/tenants/client_105261/policies/management

Status code

200 OK

Sample request

[
   {
      "id": 168,
      "name": "Test",
      "resourceType": "ALL",
      "matchType": "ANY",
      "rules": [
         {
	    "id": 155798,
            "filterType": "ANY_CLOUD_RESOURCE"
         }
      ],
      "actions": [],
      "executionOrder": 0
   },
   {
      "id": 181,
      "name": "TestCAttrdf",
      "matchType": "ALL",
      "rules": [
         {
	    "id": 156798,
            "key": "Name",
            "operator": "Contains",
            "value": "a",
            "resourceType": "DEVICE",
	    "isNativeAttribute": true
         },
         {
	    "id": 155833,
            "key": "Name",
            "operator": "Contains",
            "value": "b",
            "resourceType": "DEVICE",
	    "isNativeAttribute": true
         }
      ],
      "actions": [
         {
            "action": "ASSIGN MONITORINGTEMPLATE",
            "items": [
                {
                    "item": "4053",
                    "parameters": {
                        "Packet Count": "3",
                        "Packet interval": "1000",
                        "Data Bytes": "64"
                    },
                    "instances": {
                    }
                }
            ],
            "forceAssignOrUnassign": false
        }
      ],
      "executionOrder": 0
   },
   {
      "id": 208,
      "name": "TestCustom",
      "matchType": "ANY",
      "rules": [
          {
        "id": 155838,
            "key": "aws:cloudformation:stack-name",
            "operator": "Contains",
            "value": "catalogs",
            "resourceType": "LOAD_BALANCER",
        "isNativeAttribute": false
         },
         {
            "id": 182199,
            "key": "Name",
            "operator": "Contains",
            "value": "test2",
            "resourceType": "DEVICE",
            "isNativeAttribute": true
        },
         {
            "id": 174698,
            "key": "Name",
            "operator": "Contains",
            "value": "test3",
            "resourceType": "DEVICE",
            "isNativeAttribute": true
        },
         {
            "id": 182239,
            "key": "Name",
            "operator": "Contains",
            "value": "test4",
            "resourceType": "DEVICE",
            "isNativeAttribute": true
        }
      ],
      "actions": [
         {
            "action": "ASSIGN KNOWLEDGEARTICLE",
            "items": [
                {
                    "item": "7188"
                }
            ],
            "forceAssignOrUnassign": true
        }
      ],
      "executionOrder": 0
   },
   {
      "id": 209,
      "name": "TestCustomDevice",
      "matchType": "ANY",
      "rules": [
         {
	    "id": 155933,
            "key": "BusinessType",
            "operator": "Contains",
            "value": "Internal",
            "resourceType": "DEVICE",
	    "isNativeAttribute": false
         },
         {
	    "id": 155843,
            "key": "aws:autoscaling:groupName",
            "operator": "Contains",
            "value": "Test",
            "resourceType": "DEVICE",
	    "isNativeAttribute": false
         }
      ],
      "actions": [
         {
            "action": "Assign Availability Rule",
            "items": [
                {
                    "item": "AND"
                }
            ]
        }
      ],
      "executionOrder": 0
   },
   {
      "id": 211,
      "name": "TestCombo",
      "matchType": "ALL",
      "rules": [
         {
	    "id": 156833,
            "key": "Name",
            "operator": "Contains",
            "value": "active",
            "resourceType": "DEVICE",
	    "isNativeAttribute": true
         },
         {
	    "id": 178833,
            "key": "NewField",
            "operator": "Contains",
            "value": "active",
            "resourceType": "DEVICE",
	    "isNativeAttribute": false
         },
         {
	    "id": 152833,
            "key": "Agent Installed",
            "operator": "Contains",
            "value": "TRUE",
            "resourceType": "DEVICE",
	    "isNativeAttribute": true
         }
      ],
      "actions": [
         {
            "action": "ASSIGN CUSTOMATTRIBUTES",
            "items": [
                {
                    "item": "264313"
                }
            ],
            "forceAssignOrUnassign": true
        }
      ],
      "executionOrder": 0
   },
   {
      "id": 240,
      "name": "TestLBPartner",
      "matchType": "ALL",
      "rules": [
         {
            "id": 182198,
            "key": "Name",
            "operator": "Contains",
            "value": "test",
            "resourceType": "DEVICE",
            "isNativeAttribute": true
        }
      ],
      "actions": [
         {
            "action": "ASSIGN MONITORINGTEMPLATE",
	    "forceAssignOrUnassign": true,
            "items": [
               {
                  "item": "6693",
                  "parameters": {},
                  "instances": {}
               }
            ]
         }
      ],
      "executionOrder": 0
   },
   {
      "id": 250,
      "name": "TestEpicGames",
      "matchType": "ALL",
      "rules": [
         {
	    "id": 155333,
            "key": "TestEpic",
            "operator": "Contains",
            "value": "TestEpicValue2",
            "resourceType": "DEVICE",
	    "isNativeAttribute": false
         }
      ],
      "actions": [
         {
            "action": "ASSIGN CREDENTIALSET",
            "items": [
                {
                    "item": "36218"
                }
            ],
            "forceAssignOrUnassign": true
        }
      ],
      "executionOrder": 0
   },
   {
      "id": 251,
      "name": "TestEpicElb",
      "matchType": "ALL",
      "rules": [
         {
            "id": 182198,
            "key": "Name",
            "operator": "Contains",
            "value": "test",
            "resourceType": "DEVICE",
            "isNativeAttribute": true
        }
      ],
      "actions": [
         {
            "action": "ASSIGN MONITORINGTEMPLATE",
	    "forceAssignOrUnassign": true,
            "items": [
               {
                  "item": "6693",
                  "parameters": {},
                  "instances": {}
               }
            ]
         }
      ],
      "executionOrder": 0
   },
   {
      "id": 257,
      "name": "TestCase",
      "matchType": "ALL",
      "rules": [
         {
	    "id": 115833,
            "key": "Name",
            "operator": "Contains",
            "value": "ce",
            "resourceType": "DEVICE",
	    "isNativeAttribute": true
         },
         {
	    "id": 155893,
            "key": "Name",
            "operator": "Contains",
            "value": "d",
            "resourceType": "DEVICE",
	    "isNativeAttribute": true
         }
      ],
      "actions": [
         {
            "action": "ASSIGN MONITORINGTEMPLATE",
	    "forceAssignOrUnassign": true,
            "items": [
               {
                  "item": "2761",
                  "parameters": {
                     "Apache Port": "8443"
                  },
                  "instances": {}
               }
            ]
         }
      ],
      "executionOrder": 0
   },
   {
      "id": 264,
      "name": "TestPolicy2",
      "matchType": "ALL",
      "rules": [
         {
	    "id": 255833,
            "key": "Name",
            "operator": "Contains",
            "value": "hydlpt311",
	    "resourceType": "DEVICE",
	    "isNativeAttribute": true
         },
         {
	    "id": 156633,
            "key": "Name",
            "operator": "Contains",
            "value": "204",
            "resourceType": "DEVICE"
         }
      ],
      "actions": [],
      "executionOrder": 0
   },
   {
      "id": 265,
      "name": "check-policy-name-update",
      "matchType": "ALL",
      "rules": [
         {
	    "id": 155893,
            "key": "Name",
            "operator": "Contains",
            "value": "test",
            "resourceType": "DEVICE",
	    "isNativeAttribute": true
         }
      ],
      "actions": [
         {
            "action": "ASSIGN MONITORINGTEMPLATE",
	    "forceAssignOrUnassign": true,
            "items": [
               {
                  "item": "2761",
                  "parameters": {
                     "Apache Port": "8443"
                  },
                  "instances": {}
               }
            ]
         },
         {
            "action": "UNASSIGN MONITORINGTEMPLATE",
	    "forceAssignOrUnassign": true,
            "items": [
               {
                  "item": "971",
                  "parameters": {},
                  "instances": {}
               }
            ]
         },
         {
            "action": "ASSIGN CREDENTIALSET",
	    "forceAssignOrUnassign": true,
            "items": [
               {
                  "item": "309",
                  "parameters": {},
                  "instances": {}
               }
            ]
         }
      ],
      "executionOrder": 0
   },
   {
    "id": 85908,
    "uid": "POLICY-4eb7d892-91dc-4ba9-bc92-980effbea64f",
    "name": "all actions",
    "matchType": "ALL",
    "rules": [
        {
            "id": 182208,
            "key": "Name",
            "operator": "Contains",
            "value": "test",
            "resourceType": "DEVICE",
            "isNativeAttribute": true
        }
    ],
    "actions": [
        {
            "action": "ASSIGN MONITORINGTEMPLATE",
            "items": [
                {
                    "item": "4053",
                    "parameters": {
                        "Packet Count": "3",
                        "Packet interval": "1000",
                        "Data Bytes": "64"
                    },
                    "instances": {
                    }
                }
            ],
            "forceAssignOrUnassign": false
        },
        {
            "action": "ASSIGN KNOWLEDGEARTICLE",
            "items": [
                {
                    "item": "7188"
                }
            ],
            "forceAssignOrUnassign": true
        },
        {
            "action": "Assign Jobs",
            "items": [
                {
                    "item": "asset info",
                    "itemType": "assetinfo",
                    "itemUid": "c072cd67-779a-4206-a3d9-7c761fd563d8"
                }
            ],
            "forceAssignOrUnassign": true
        },
        {
            "action": "Assign Availability Rule",
            "items": [
                {
                    "item": "AND"
                }
            ]
        },
        {
            "action": "ASSIGN CREDENTIALSET",
            "items": [
                {
                    "item": "36218"
                }
            ],
            "forceAssignOrUnassign": true
        },
        {
            "action": "ASSIGN CUSTOMATTRIBUTES",
            "items": [
                {
                    "item": "264313"
                }
            ],
            "forceAssignOrUnassign": true
        }
    ]
   }
]