Fortinet white logo
Fortinet white logo

Rest API

7.4.0

Post /settings/integration/vulnerability-scanner/{id}

Post /settings/integration/vulnerability-scanner/{id}

Description

Updates an vulnerability scanner record.

Request Parameter

Id, the vulnerability scanner record ID.

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/settings/integration/vulnerability-scanner/2

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

{

"vendor": "string",

"name": "string",

"request": "string",

"password": [

"string"

],

"identifier": "string",

"pluginName": "string",

"poll": true,

"scans": [

{

"dbid": 0,

"scanId": "string",

"uuid": "string",

"scannerDevice": "string",

"name": "string",

"status": "string",

"launchable": true,

"lastModified": "2024-02-21T23:10:48.006Z",

"critical": 0,

"high": 0,

"medium": 0,

"low": 0,

"info": 0,

"profile": "string",

"startTime": "2024-02-21T23:10:48.006Z",

"type": "string",

"auditString": "string",

"yamsEventTag": "string",

"auditObj": {

"user": "string",

"action": "string",

"timestamp": "2024-02-21T23:10:48.006Z",

"liveObj": {

"yamsEventTag": "string",

"auditObj": "string"

},

"auditDBID": 0,

"liveDBID": 0,

"yamsEventTag": "string",

"auditObj": "string"

}

}

],

"pollInterval": 0,

"lastPoll": "2024-02-21T23:10:48.006Z",

"lastSuccessfulPoll": "2024-02-21T23:10:48.006Z",

"createDate": "2024-02-21T23:10:48.006Z",

"applianceName": "string",

"secretKey": "string",

"accessKey": "string",

"authenticationType": "string",

"userID": "string",

"dbid": 0,

"yamsEventTag": "string",

"auditObj": {

"user": "string",

"action": "string",

"timestamp": "2024-02-21T23:10:48.006Z",

"liveObj": {

"yamsEventTag": "string",

"auditObj": "string"

},

"auditDBID": 0,

"liveDBID": 0,

"yamsEventTag": "string",

"auditObj": "string"

},

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

},

"passwordEncrypt": "string",

"passwordDecrypt": "string"

}

Sample Response

{

"status": "success",

"errorMessage": null

}

Post /settings/integration/vulnerability-scanner/{id}

Post /settings/integration/vulnerability-scanner/{id}

Description

Updates an vulnerability scanner record.

Request Parameter

Id, the vulnerability scanner record ID.

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/settings/integration/vulnerability-scanner/2

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

{

"vendor": "string",

"name": "string",

"request": "string",

"password": [

"string"

],

"identifier": "string",

"pluginName": "string",

"poll": true,

"scans": [

{

"dbid": 0,

"scanId": "string",

"uuid": "string",

"scannerDevice": "string",

"name": "string",

"status": "string",

"launchable": true,

"lastModified": "2024-02-21T23:10:48.006Z",

"critical": 0,

"high": 0,

"medium": 0,

"low": 0,

"info": 0,

"profile": "string",

"startTime": "2024-02-21T23:10:48.006Z",

"type": "string",

"auditString": "string",

"yamsEventTag": "string",

"auditObj": {

"user": "string",

"action": "string",

"timestamp": "2024-02-21T23:10:48.006Z",

"liveObj": {

"yamsEventTag": "string",

"auditObj": "string"

},

"auditDBID": 0,

"liveDBID": 0,

"yamsEventTag": "string",

"auditObj": "string"

}

}

],

"pollInterval": 0,

"lastPoll": "2024-02-21T23:10:48.006Z",

"lastSuccessfulPoll": "2024-02-21T23:10:48.006Z",

"createDate": "2024-02-21T23:10:48.006Z",

"applianceName": "string",

"secretKey": "string",

"accessKey": "string",

"authenticationType": "string",

"userID": "string",

"dbid": 0,

"yamsEventTag": "string",

"auditObj": {

"user": "string",

"action": "string",

"timestamp": "2024-02-21T23:10:48.006Z",

"liveObj": {

"yamsEventTag": "string",

"auditObj": "string"

},

"auditDBID": 0,

"liveDBID": 0,

"yamsEventTag": "string",

"auditObj": "string"

},

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

},

"passwordEncrypt": "string",

"passwordDecrypt": "string"

}

Sample Response

{

"status": "success",

"errorMessage": null

}