This URL gets interfaces allocated to a Sensor inside a domain.
Resource URL
GET /domain/<domain_id>/sensor/<sensor_id>/allocatedinterfaces
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Domain ID | Number | Yes |
| Sensor 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 |
|---|---|---|
| Array of type allocated interface list | Array |
Details of fields in allocated interface list:
Field Name | Description | Data Type |
|---|---|---|
| Interface id | Number |
| Interface name | String |
| Interface Type | String |
Example
Request
GET https://<NSM_IP>/sdkapi/domain/103/sensor/1001/allocatedinterfaces
Response
{
"allocatedInterfaceList":
[
{
"interfaceName": "2A-2B",
"interfaceId": 173,
"interfaceType": "Vlan"
},
{
"interfaceName": "4A-4B",
"interfaceId": 113,
"interfaceType": "Dedicated"
}
]
}
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 |