Get /device/container/count
Description
Returns the count of Container records matching the supplied filter.
Request Headers
Key |
Value |
Type |
Description |
---|---|---|---|
Authorization | Bearer <Authorization Token> | String | Authorization credential generated by FortiNAC |
Content-Type (option 1) | application/json | String | |
Content-Type (option 2) |
application/xml |
|
|
Request Body Parameters
Name |
Required |
Type |
---|---|---|
filter | Optional | Array<String> |
Sample Request
Request URL |
GET https://10.106.94.152:8443/api/v2/device/container/count |
Request Header |
Authorization: Bearer <Authorization_Token> Content-Type: application/json
|
Sample Response
{
"status": "success",
"errorMessage": null,
"results": [
{
"landscape": 345052093136,
"id": 22,
"state": 0,
"elementClass": 4,
"role": null,
"name": "Wireless Controllers",
"type": null,
"protocol": null,
"status": 0,
"parent": "",
"suffix": null,
"version": 1.8,
"notes": null,
"description": null,
"group": null,
"pollingInterval": 10,
"lastPoll": null,
"lastSuccessfulPoll": "2023-08-25T17:40:35.853+0000",
"mibs": [],
"destroyEvent": {
"landscape": -1,
"id": -1,
"state": 1,
"name": "DOMAIN_DESTROYED",
"elementType": 4,
"elementID": 22,
"elementName": null,
"message": null,
"timeOfEvent": "2023-09-26T21:07:48.038+0000",
"version": 1.3,
"time": 1695762468038,
"empty": false,
"eventFormatString": "Container Wireless Controllers destroyed."
},
"creationEvent": {
"landscape": -1,
"id": -1,
"state": 1,
"name": "DOMAIN_CREATED",
"elementType": 4,
"elementID": 22,
"elementName": null,
"message": null,
"timeOfEvent": "2023-09-26T21:07:48.040+0000",
"version": 1.3,
"time": 1695762468040,
"empty": false,
"eventFormatString": "Container Wireless Controllers created."
},
"establishedEvent": {
"landscape": -1,
"id": -1,
"state": 1,
"name": "CONTACT_ESTABLISHED",
"elementType": 4,
"elementID": 22,
"elementName": null,
"message": null,
"timeOfEvent": "2023-09-26T21:07:48.040+0000",
"version": 1.3,
"time": 1695762468040,
"empty": false,
"eventFormatString": "Contact of device Wireless Controllers Established \nfor protocol YAMS."
},
"lostEvent": {
"landscape": -1,
"id": -1,
"state": 1,
"name": "CONTACT_LOST",
"elementType": 4,
"elementID": 22,
"elementName": null,
"message": null,
"timeOfEvent": "2023-09-26T21:07:48.040+0000",
"version": 1.3,
"time": 1695762468040,
"empty": false,
"eventFormatString": "Contact of device Wireless Controllers lost for \nprotocol YAMS."
},
"changeMask": 0,
"attributeNames": [],
"physicalAddress": null,
"sysOid": null,
"packedVersion": 1.8,
"auditObjectName": "Wireless Controllers",
"auditObjectType": {
"auditTableName": "ELEMENTSAudit",
"mysqlTableName": "ELEMENTS",
"idnameQuery": "select id,name from ELEMENTS where id in"
},
"addAuditSummary": "",
"domainName": "1",
"identification": "22",
"requestString": "Wireless Controllers",
"attribute": [],
"lastChangeMask": 0
}
],
"filtered": 1,
"total": 2
}