This URL gets interface or sub interface details.
Resource URL
GET /sensor/<sensor_id>/interface/<interface_id or subinterface_id>
Request Parameters
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Sensor Id | Number | Yes |
| Unique id of interface/sub interface | Number | Yes |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of Interfaces:
Field Name | Description | Data Type |
|---|---|---|
| List of interfaces | Array |
Details of object in InterfaceInfo:
Field Name | Description | Data Type |
|---|---|---|
| Unique Id to identify interface/sub interface | Number |
| Name of the interface | String |
| Interface description | String |
| Traffic type | Object |
| IPS policy applied on interface | Number |
| ID of the domain to which the interface is added | Number |
| Sub interface details | Object |
| Last modified timestamp | String |
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 |
| Segment of interface into multiple networks by bridge VLAN tags | Object |
Details of CIDR:
Field Name | Description | Data Type |
|---|---|---|
| List of CIDR IDs | Array |
Details of Vlan:
Field Name | Description | Data Type |
|---|---|---|
| List of VLAN IDs | Array |
Details of Bridge Vlan:
Field Name | Description | Data Type |
|---|---|---|
| List of bridge VLAN range | Array |
Details of SubInterfaces:
Field Name | Description | Data Type |
|---|---|---|
| List of sub interfaces | Array |
Details of object in SubInterfaceInfo:
Field Name | Description | Data Type |
|---|---|---|
| Name of the interface | String |
| Unique Id to identify subinterface | Number |
| Traffic type. VLAN, CIDR, or BridgeVlan | String |
| IPS policy applied on interface | Number |
| Last modified timestamp | String |
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/interface/105
Response
{
"InterfaceInfo": {
"vidsId": 115,
"name": "G3/7-G3/8",
"Description": "",
"Interfacetype": {
"Dedicated": null,
"Vlan": null,
"Cidr": null,
"BridgeVlan": {
"bridgeVlanRangeList": ["4094-4095",
"5-6",
"3-4",
"1-2"]
}
},
"IPSPolicyId": 19,
"DomainId": 0,
"SubInterfaces": {
"SubInterfaceInfo": []
},
"LastModTs": "2017-12-12 16:56:11"
}
}
Error Information
Following error codes are returned by this URL:
S.No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 404 | 1106 | Invalid Sensor |
2 | 404 | 1107 | Invalid interface or sub-interface id |