This URL allows you to get the details of stacked Sensors.
Resource URL
sensorstack/summary/<device_ID>
Request Parameters
URL parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Device ID details | Number | Yes |
Response Parameters
Following fields are returned if the request parameters are correct.
Field Name | Description | Data Type |
|---|---|---|
| Displays the success status | Boolean |
| Displays the message | String |
| Displays the error message | Boolean |
| An object that contains the details of the field | Object |
| Error code | Number |
Details of fields in data:
Field Name | Description | Data Type |
|---|---|---|
| Configuration status | Boolean |
| Sensor status | Boolean |
| Device type details | String |
| An object that contains the details of the field | Object |
| An array that contains the details of the field | Array |
Details of fields in stackVO:
Field Name | Description | Data Type |
|---|---|---|
| Displays the stack name | String |
| Description details | String |
| Subscriber ID details | Number |
| Shared secret key details | String |
| Capacity details | Number |
| Mode of download | Number |
| Sensor model details | String |
| Device type details | String |
| Validity status of the license | String |
| Stack ID details | Number |
| An array that contains the details of the field | Array |
| Status of license assignment | Boolean |
Details of fields in members:
Field Name | Description | Data Type |
|---|---|---|
| Sensor ID details | Number |
| Member ID details | Number |
| Name of the Sensor | String |
| Channel online status | Boolean |
Details of fields in sensorStatusVOList:
Field Name | Description | Data Type |
|---|---|---|
| Name of the Sensor | String |
| Sensor active status | Boolean |
Example
Request
GET https://<IPSM_IP>/sdkapi/sensorstack/summary/108
Response
{
"success": true,
"msg": "Success",
"errMsg": null,
"data": {
"configurationChanged": false,
"sensorActive": false,
"deviceType": "Suricata Stack",
"stackVO": {
"stackName": "stack2",
"description": "",
"subscriberid": 0,
"sharedsecret": "admin123",
"capacity": 120,
"downloadMode": 0,
"model": "NS9600",
"deviceType": "suricata",
"licensevalState": "INVALID_UNASSIGNED",
"id": 108,
"members": [
{
"sensorId": 1046,
"memberId": 1,
"sensorName": "stack2-1",
"channelStatusOnline": false
},
{
"sensorId": 1047,
"memberId": 2,
"sensorName": "stack2-2",
"channelStatusOnline": false
}
],
"licenseAssigned": false
},
"sensorStatusVOList": [
{
"sensorName": "stack2-1",
"sensorActive": false
},
{
"sensorName": "stack2-2",
"sensorActive": false
}
]
},
"errorCode": 0
}Error Information
The following error code is returned by this URL:
S.No | Generic Error Codes | ErrorMessage | Error Reason |
|---|---|---|---|
1 | 1001 | Bad URL - HTTP 404 Not Found | Mistyped URL |
Internal Error – Null | Incorrect Input data, authentication issues |