Get /system/task
Description
Returns all task records which match the supplied fitler.
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 |
start | Optional | Integer |
count | Optional | Integer |
sortKey | Optional | String |
sortDir | Optional | String |
Sample Request
Request URL |
GET https://10.106.94.152:8443/api/v2/system/task |
Request Header |
Authorization: Bearer <Authorization_Token> Content-Type: application/json
|
Sample Response
{
"status": "success",
"errorMessage": null,
"results": [
{
"landscape": 345052093136,
"id": 1,
"state": 0,
"elementType": 100,
"nameTag": "SECURITY_RESCAN",
"scheduledObjectType": 10,
"eventTag": "SECURITY_RESCAN",
"taskType": 3,
"version": 1.2,
"lastModifiedBy": "SYSTEM",
"lastModifiedDate": "2024-02-05T02:29:19.337+0000",
"lastChangeSummary": "",
"taskValue": "SecurityManager",
"auditObjectName": "SECURITY_RESCAN",
"auditObjectType": null,
"modifyAuditSummary": null,
"addAuditSummary": null
},
{
"landscape": 345052093136,
"id": 2,
"state": 0,
"elementType": 20,
"nameTag": "VERIFY_DHCP",
"scheduledObjectType": 2,
"eventTag": "VERIFY_DHCP",
"taskType": 3,
"version": 1.2,
"lastModifiedBy": "SYSTEM",
"lastModifiedDate": "2024-02-05T02:29:19.338+0000",
"lastChangeSummary": "",
"taskValue": "DHCPProbe",
"auditObjectName": "VERIFY_DHCP",
"auditObjectType": null,
"modifyAuditSummary": null,
"addAuditSummary": null
}
],
"filtered": 2,
"total": 34
}