This URL revokes an interface from a Sensor in child domain.
Resource URL
DELETE /domain/<domain_id>/sensor/<sensor_id>/interface/<interface_id>/revokeinterface?value=<id>
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Domain ID | Number | Yes |
| Sensor ID | Number | Yes |
| Interface ID | Number | Yes |
| VLAN ID, Bridge VLAN ID, or CIDR value, should be provided when revoking an interface of VLAN/CIDR type | String | No |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Field Name | Description | Data Type |
|---|---|---|
| Set to 1 if the operation was successful, -1 otherwise | Number |
Example
Request
DELETE https://<NSM_IP>/sdkapi/domain/103/sensor/1002/interface/124/revokeinterface?value=8
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 404 | 1105 | Invalid domain |
2 | 404 | 1106 | Invalid Sensor |
3 | 404 | 1107 | Invalid Interface or Sub-interface id |
4 | 400 | 1134 | Provided interface not allocated to the specified domain |
5 | 400 | 1132 | Invalid VLAN id provided |
6 | 400 | 1133 | Invalid CIDR provided |