This URL retrieves all policies assigned for the interfaces of all the devices in the given domain.
Resource URL
GET domain/<domain_id>/policyassignments/interface
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| 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 |
|---|---|---|
| Device name | String |
| Device id | Number |
| Interface name | String |
| Interface id | Number |
| Policy group name | String |
| IPS Policy name | String |
| Advanced malware inbound policy name | String |
| Advanced malware outbound policy name | String |
| Connection limiting policy name | String |
| Firewall policy name | String |
| QoS inbound policy name | String |
| QoS outbound policy name | String |
| Inspection options policy name | String |
| QoS inbound rate limiting profile | String |
| QoS outbound rate limiting profile | String |
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/policyassignments/interface
Response
policyAssignmentsList
{
[
{
"deviceName": "API_2950_2",
"deviceId": 1001,
"interfaceName": "5A-5B",
"interfaceId": 137,
"ipsPolicy": "Default Inline IPS",
"firewallPolicy": "NSAT_Adv_Rules_for_Interface",
"firewallPortPolicy": "NSAT_Adv_Rules_for_Port",
"qosInboundPolicy": "SrvRL_Inbound",
"qosOutboundPolicy": "SrvRL_Outbound",
"qosInboundRateLimitingProfile": "AppID-RL Inbound",
"qosOutboundRateLimitingProfile": "AppID-RL Outbound"
}
]
}
Error Information
Following error code is returned by this URL:
No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 400 | 4301 | Invalid domain id |