Fortinet white logo
Fortinet white logo

Rest API

7.2.0

Get /logging/audit

Get /logging/audit

Description

Returns all of the matching audit logs. Includes a hash of DBID to name mappings per record type.

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/host/logging/audit

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Sample Response

{

"status": "string",

"errorMessage": "string",

"nameCache": {

"additionalProp1": {

"additionalProp1": "string",

"additionalProp2": "string",

"additionalProp3": "string"

},

"additionalProp2": {

"additionalProp1": "string",

"additionalProp2": "string",

"additionalProp3": "string"

},

"additionalProp3": {

"additionalProp1": "string",

"additionalProp2": "string",

"additionalProp3": "string"

}

},

"results": [

{

"recordID": 0,

"date": "2024-03-02T01:05:51.764Z",

"recordName": "string",

"userID": "string",

"summary": "string",

"recordType": "string",

"action": "string",

"auditObj": {

"auditDBID": 0,

"liveDBID": 0,

"liveObj": {

"auditObj": "string",

"yamsEventTag": "string"

},

"user": "string",

"action": "string",

"timestamp": "2024-03-02T01:05:51.764Z",

"auditObj": "string",

"yamsEventTag": "string"

},

"yamsEventTag": "string"

}

],

"filtered": 0,

"total": 0

}

Get /logging/audit

Get /logging/audit

Description

Returns all of the matching audit logs. Includes a hash of DBID to name mappings per record type.

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/host/logging/audit

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Sample Response

{

"status": "string",

"errorMessage": "string",

"nameCache": {

"additionalProp1": {

"additionalProp1": "string",

"additionalProp2": "string",

"additionalProp3": "string"

},

"additionalProp2": {

"additionalProp1": "string",

"additionalProp2": "string",

"additionalProp3": "string"

},

"additionalProp3": {

"additionalProp1": "string",

"additionalProp2": "string",

"additionalProp3": "string"

}

},

"results": [

{

"recordID": 0,

"date": "2024-03-02T01:05:51.764Z",

"recordName": "string",

"userID": "string",

"summary": "string",

"recordType": "string",

"action": "string",

"auditObj": {

"auditDBID": 0,

"liveDBID": 0,

"liveObj": {

"auditObj": "string",

"yamsEventTag": "string"

},

"user": "string",

"action": "string",

"timestamp": "2024-03-02T01:05:51.764Z",

"auditObj": "string",

"yamsEventTag": "string"

},

"yamsEventTag": "string"

}

],

"filtered": 0,

"total": 0

}