This URL updates all policies assigned for particular interfaces for the device in the given domain.
Resource URL
PUT domain/<domain_id>/policyassignments/interface/<interface_id>
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Domain id | Number | Yes |
| Interface id | Number | Yes |
Payload Request Parameters:
Field Name | Description | Data Type |
|---|---|---|
| Sensor name | String |
| 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 |
| ATD user for inbound malware analysis | String |
| ATD user for outbound malware analysis | String |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Field Name | Description | Data Type |
|---|---|---|
| Operation status | int |
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/policyassignments/interface/137
Payload
{
"deviceName":"Sensor-name",
"ipsPolicy": "Default Inline IPS",
"firewallPolicy": "NSAT_Adv_Rules_for_Interface",
"firewallPortPolicy": "NSAT_Adv_Rules_for_Port",
"qosInboundPolicy": null,
"qosOutboundPolicy": "SrvRL_Outbound",
"qosInboundRateLimitingProfile": "AppID-RL Inbound",
"qosOutboundRateLimitingProfile”: null
}
Response
{
"status": 1
}
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 | 1107 | Invalid interface id |