--- title: "Get All Policy Assignments Device" slug: "get-all-policy-assignments-device-2" tags: ["IPS 11.1.x", "Reference"] updated: 2026-11-19T12:56:58Z published: 2026-11-19T12:56:58Z canonical: "docs.trellix.com/get-all-policy-assignments-device-2" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Get All Policy Assignments Device This URL retrieves all policies assigned for the devices in the given domain. ### Resource URL GET domain//policyassignments/device ### Request Parameters URL Parameters: | Field Name | Description | Data Type | Mandatory | | --- | --- | --- | --- | | `domain_id` | Domain id | Number | Yes | ### Response Parameters Following fields are returned if the request parameters are correct, otherwise error details are returned. | Field Name | Description | Data Type | | --- | --- | --- | | `deviceName` | Device name | String | | `deviceId` | Device id | Number | | `firewallPolicyLast` | Post firewall policy | String | | `firewallPolicyFirst` | Pre-firewall policy | String | | `reconnaissancePolicy` | Reconnaissance policy | String | ### Example **Request** GET [https:///sdkapi/domain/0/policyassignemnts/interface](https://<NSM_IP>/sdkapi/domain/0/policyassignemnts/interface) **Response** ``` policyAssignmentsList {   [       {               "deviceName": "API_2950_2",               "deviceId": 1001,               "firewallPolicyLast": "NSAT_Adv_Rules_for_Interface",               "firewallPolicyFirst": "NSAT_Adv_Rules_for_Interface        }         ]   } ``` ### Error Information Following error codes are returned by this URL: | No | HTTP Error Code | SDK API errorId | SDK API errorMessage | | --- | --- | --- | --- | | 1 | 400 | 4301 | Invalid domain id | | 2 | 400 | 1106 | Invalid Sensor id |