This URL returns the available interfaces to be allocated.
Resource URL
GET /domain/<domain_id>/sensor/<sensor_id>/availableinterfaces
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 interface information | Array |
Details of fields in InterfaceInf:
Field Name | Description | Data Type |
|---|---|---|
| Interface Id | Int |
| Interface name | String |
| Interface type | Object |
| Array of type Interface Info | Array |
Details of interfaceType:
Field Name | Description | Data Type |
|---|---|---|
| Default traffic type. No segmentation of traffic | Object |
| Segment of interface into multiple networks by VLAN tags | Object |
| Enables segment of interface into multiple networks by CIDR addressing | Object |
| List of bridge VLAN id(applicable for VM-IPS only) | Object |
Details of CIDR:
Field Name | Description | Data Type |
|---|---|---|
| List of CIDR IDs | Array |
Details of BridgeVlan:
Field Name | Description | Data Type |
|---|---|---|
| List of bridge VLAN range | Array |
Details of Vlan:
Field Name | Description | Data Type |
|---|---|---|
| List of VLAN IDs | Array |
Example
Request
https://<NSM_IP>/sdkapi/domain/103/sensor/1002/availableinterfaces
Response
{
"interfaceInfoList":
[
{
"interafaceId": 123,
"name": "3B",
"interfacetype":
{
"Dedicated":
{
}
}
},
{
"interafaceId": 116,
"name": "1A-1B",
"interfacetype":
{
"Dedicated":
{
}
}
},
{
"interafaceId": 115,
"name": "2A-2B",
"interfacetype":
{
"Vlan":
{
"id":
[
"8",
"9"
]
}
}
},
{
"interafaceId": 114,
"name": "3A",
"interfacetype":
{
"Dedicated":
{
}
}
},
{
"interafaceId": 113,
"name": "4A-4B",
"interfacetype":
{
"Dedicated":
{
}
}
},
{
"interafaceId": 112,
"name": "5A-5B",
"interfacetype":
{
"Dedicated":
{
}
}
},
{
"interafaceId": 111,
"name": "6A-6B",
"interfacetype":
{
"Dedicated":
{
}
}
},
{
"interafaceId": 110,
"name": "7A-7B",
"interfacetype":
{
"Cidr":
{
"cidrList":
[
"192.168.0.0/23"
]
}
}
}
]
}
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 |