Fortinet white logo
Fortinet white logo

Rest API

7.2.0

Post /system/background-task

Post /system/background-task

Description

Adds a new Background Task record to the database.

.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

Sample Request

Request URL

POST https://10.106.94.152:8443/api/v2/system/background-task

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

{

"attributes": {},

"childTasks": null,

"yamsEventTag": null,

"auditObj": {},

"auditObjectName": "View Endpoint Fingerprints",

"auditObjectType": {

"auditTableName": "BackgroundTasksAudit",

"mysqlTableName": "BackgroundTasks",

"idnameQuery": "select ID, message from BackgroundTasks where ID in"

},

"id": 12,

"message": "View Endpoint Fingerprints",

"assigner": 3,

"assignee": null,

"note": "Created automatically during system setup",

"dateCreated": 1692985112000,

"dateCompleted": null,

"dateDue": null,

"previousTask": "2",

"previousTaskComplete": false,

"notifyView": "b0f391c0-adc8-11eb-8529-0242ac130003"

}

Sample Response

{

"status": "success",

"errorMessage": null

}

Post /system/background-task

Post /system/background-task

Description

Adds a new Background Task record to the database.

.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

Sample Request

Request URL

POST https://10.106.94.152:8443/api/v2/system/background-task

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

{

"attributes": {},

"childTasks": null,

"yamsEventTag": null,

"auditObj": {},

"auditObjectName": "View Endpoint Fingerprints",

"auditObjectType": {

"auditTableName": "BackgroundTasksAudit",

"mysqlTableName": "BackgroundTasks",

"idnameQuery": "select ID, message from BackgroundTasks where ID in"

},

"id": 12,

"message": "View Endpoint Fingerprints",

"assigner": 3,

"assignee": null,

"note": "Created automatically during system setup",

"dateCreated": 1692985112000,

"dateCompleted": null,

"dateDue": null,

"previousTask": "2",

"previousTaskComplete": false,

"notifyView": "b0f391c0-adc8-11eb-8529-0242ac130003"

}

Sample Response

{

"status": "success",

"errorMessage": null

}