This URL gets CIDR list allocated to an interface.
Resource URL
GET /sensor/<sensor_id>/interface/<interface_id>/allocatedcidrlist
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Sensor ID | Number | Yes |
| Interface 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 |
|---|---|---|
| List of CIDR | Array |
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1002/interface/110/allocatedcidrlist
Response
{
"cidrList":
[
"192.168.0.0/28"
]
}
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 |