devices_by_state
Gets devices that are in a specific state.
Path
/lib/devices_by_state.js
Parameters:
None.
Example Request:
POST /redrock/query
{
"Script":"@/lib/devices_by_state.js",
"Args":{
"PageNumber":1,
"PageSize":10,
"Limit":10,
"SortBy":"",
"direction":"False",
"Caching":-1
}
}
Example Response:
{
"success": true,
"Result": {
"IsAggregate": false,
"Count": 2,
"Columns": [
{
"Name": "State",
"IsHidden": false,
"DDName": null,
"Title": "State",
"DDTitle": null,
"Description": null,
"Type": 12,
"Format": null,
"Width": 10,
"TableKey": null,
"ForeignKey": null,
"TableName": null
},
{
"Name": "Count",
"IsHidden": false,
"DDName": null,
"Title": "Count",
"DDTitle": null,
"Description": null,
"Type": 8,
"Format": null,
"Width": 0,
"TableKey": null,
"ForeignKey": null,
"TableName": null
}
],
"FullCount": 2,
"Results": [
{
"Entities": [
{
"Type": "??",
"Key": "??",
"IsForeignKey": false
}
],
"Row": {
"State": "Active",
"Count": 7
}
},
{
"Entities": [
{
"Type": "??",
"Key": "??",
"IsForeignKey": false
}
],
"Row": {
"State": "Terminated",
"Count": 6
}
}
],
"ReturnID": ""
},
"Message": null,
"MessageID": null,
"Exception": null,
"ErrorID": null,
"ErrorCode": null,
"InnerExceptions": null
}
Updated almost 5 years ago