This URL gets the device details.
Resource URL
GET /domain/<domain_id>/device/<device_id>
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Device 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 |
|---|---|---|
| Unique device id, not required for POST | String |
| Device name | String |
| Device type can be IPSNACSensor/ virtualHIPSensor/ NTBAAppliance/ loadBalancer | Object |
| Contact information for the device | String |
| Device location | String |
| Last modified time of the device | String |
Details of IPSNACSensor:
Field Name | Description | Data Type |
|---|---|---|
| Device shared secret key | String |
| Device confirmed shared secret key | String |
| Update mode can be ONLINE/ OFFLINE/ UNKNOWN | String |
Details of virtualHIPSensor:
Field Name | Description | Data Type |
|---|---|---|
| Device shared secret key | String |
| Device confirmed shared secret key | String |
Details of NTBAAppliance:
Field Name | Description | Data Type |
|---|---|---|
| Device shared secret key | String |
| Device confirmed shared secret key | String |
Details of loadBalancer:
Field Name | Description | Data Type |
|---|---|---|
| IP address | String |
| SNMP user name | String |
| Authentication password | String |
| Privacy password | String |
| LB model | String |
| Device user name | String |
| Device user password | String |
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/device/1005
Response
{
"deviceId": 1005,
"deviceName": "NTBA_APPLIANCEs",
"deviceType": {
"virtualHIPSensor": null,
"NTBAAppliance": {
"sharedSecret": "admin123",
"confirmSharedSecret": "admin123"
},
"loadBalancer": null
},
"contactInformation": "Contact_Infor",
"location": "Locaiton",
"LastModifiedTime": "2013-07-22 20:04:17.0"
}
Error Information
Following error codes are returned by this URL:
S.No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 404 | 1105 | Invalid domain |
2 | 404 | 4608 | Invalid device id /device not visible in this domain |