Post /settings/integration/vulnerability-scanner
Description
Creates a new vulnerability scanner record, updating instead if the supplied profile has a DBID of one that already exists.
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 |
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,
"result": []
}