Fortinet white logo
Fortinet white logo

Rest API

7.2.0

Get /policy/endpoint-compliance/custom-scan/html

Get /policy/endpoint-compliance/custom-scan/html

Description

Returns the HTML content of a custom scan for the supplied OS, Scan Type, and Scan Name.

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

Description

os Yes String

The supplied operating system.

type

Yes

String

The scan type.

scanName

Yes

String

The scan name.

Sample Request

Request URL

GET https://10.106.94.152:8443/api/v2/policy/endpoint-compliance/custom-scan/html

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

os: xxxxxxxx

type: xxxxxxxx

scanName: xxxxxxxx

Sample Response

{

"status": "string",

"errorMessage": "string",

"html": "string",

"script": "string"

}

Get /policy/endpoint-compliance/custom-scan/html

Get /policy/endpoint-compliance/custom-scan/html

Description

Returns the HTML content of a custom scan for the supplied OS, Scan Type, and Scan Name.

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

Description

os Yes String

The supplied operating system.

type

Yes

String

The scan type.

scanName

Yes

String

The scan name.

Sample Request

Request URL

GET https://10.106.94.152:8443/api/v2/policy/endpoint-compliance/custom-scan/html

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

os: xxxxxxxx

type: xxxxxxxx

scanName: xxxxxxxx

Sample Response

{

"status": "string",

"errorMessage": "string",

"html": "string",

"script": "string"

}