Fortinet black logo

FortiAnalyzer reports

FortiAnalyzer reports

Get unassigned FortiAnalyzer reports that the specified customer can assign

Request

GET http://localhost:8080/fpc/api/customers/1/availablefazreports

Headers

accept: application/json

content-type: application/json

fpc-sid: 9F6FDBC7A65806CFA2322CA525CF912F

Cookie: JSESSIONID=$FPCSID

Response

{

"ipAddress": null,

"reportName": "360-Degree Security Review",

"startTime": null,

"endTime": null,

"fazName": "FAZ_TEST",

"adom": "ADOM_TEST",

"reportId": 319,

"customerId": null,

"fazId": 3,

"customerName": null,

"devices": null

}

Get FortiAnalyzer reports that are assigned to the specified customer

Request

GET http://localhost:8080/fpc/api/customers/2/assignedfazreports

Headers

accept: application/json

content-type: application/json

fpc-sid: 9F6FDBC7A65806CFA2322CA525CF912F

Cookie: JSESSIONID=$FPCSID

Response

{

"ipAddress": null,

"reportName": "360-Degree Security Review",

"startTime": null,

"endTime": null,

"fazName": "FAZ_TEST",

"adom": "ADOM_TEST",

"reportId": 319,

"customerId": 2,

"fazId": 3,

"customerName": TEST_customer,

"devices": null

}

Assign FortiAnalyzer reports to a customer

Request

POST http://localhost:8080/fpc/api/customers/3/assignfazreports

Headers

accept: application/json

content-type: application/json

fpc-sid: 9F6FDBC7A65806CFA2322CA525CF912F

Cookie: JSESSIONID=$FPCSID

Payload

[319,303]

Response

Status 200 OK

Unassign FortiAnalyzer reports from a customer

Request

POST http://localhost:8080/fpc/api/customers/3/unassignfazreports

Headers

accept: application/json

content-type: application/json

fpc-sid: 9F6FDBC7A65806CFA2322CA525CF912F

Cookie: JSESSIONID=$FPCSID

Payload

[319,303]

Response

Status 200 OK

Get all FortiAnalyzer units

Request

GET http://localhost:8080/fpc/api/fortianalyzers

Headers

accept: application/json

content-type: application/json

fpc-sid: 5CE163D9F2D2C185843C77C6DE2DE2A4

Cookie: JSESSIONID=$FPCSID

Response

[{

"adminUserName": "boweiliu",

"fazVersion": null,

"name": "jad",

"ipAddress": "0.0.0.0",

"id": 1,

"status": "D"

},

{

"adminUserName": "admin",

"fazVersion": "v6.0.4-build0292 190109 (GA)",

"name": "FAZ",

"ipAddress": "10.106.6.214",

"id": 3,

"status": "A"

}

]

Get detailed information for a specific FortiAnalyzer

Request

GET http://localhost:8080/fpc/api/fortianalyzers/1

Headers

accept: application/json

content-type: application/json

fpc-sid: 5CE163D9F2D2C185843C77C6DE2DE2A4

Cookie: JSESSIONID=$FPCSID

Response

{

"id": 1,

"name": "Faz1",

"ipAddress": "10.106.6.214",

"adminUserName": "admin",

"status": "A",

"lastRunTime": 1553263143000,

"xmlPort": 8080,

"jsonPort": 443,

"fazVersion": "v6.0.4-build0292 190109 (GA)"

}

Add a new FortiAnalyzer to FortiPortal

Request

POST http://localhost:8080/fpc/api/fortianalyzers

Headers

accept: application/json

content-type: application/json

fpc-sid: 5CE163D9F2D2C185843C77C6DE2DE2A4

Cookie: JSESSIONID=$FPCSID

Payload

{

"name": "testRestAPI",

"ipAddress": "10.106.6.217",

"adminUserName": "admin",

"adminPassword": "admin123",

"jsonPort": 443,

}

Response

{

"fazId": 3

}

Edit the information for an existing FortiAnalyzer

Request

POST http://localhost:8080/fpc/api/fortianalyzers/3

Headers

accept: application/json

content-type: application/json

fpc-sid: 5CE163D9F2D2C185843C77C6DE2DE2A4

Cookie: JSESSIONID=$FPCSID

Payload

{

"name": "testChangeNameRestAPI",

"ipAddress": "10.106.6.217",

"adminUserName": "admin",

"adminPassword": "admin123",

"jsonPort": 443

}

Response

Status 200 OK

Remove a FortiAnalyzer from FortiPortal

Request

DELETE http://localhost:8080/fpc/api/fortianalyzers/3

Headers

accept: application/json

content-type: application/json

fpc-sid: 5CE163D9F2D2C185843C77C6DE2DE2A4

Cookie: JSESSIONID=$FPCSID

Response

Status 200 OK

Update the list of FortiAnalyzer reports

Request

GET http://localhost:8080/fpc/api/fortianalyzers/3/pollnow

Headers

accept: application/json

content-type: application/json

fpc-sid: 5CE163D9F2D2C185843C77C6DE2DE2A4

Cookie: JSESSIONID=$FPCSID

Response

Status 200 OK

List FortiAnalyzer report templates for a specific FortiAnalyzer

Request

GET http://localhost:8080/fpc/api/fortianalyzers/3/reporttemplates

Headers

accept: application/json

content-type: application/json

fpc-sid: 5CE163D9F2D2C185843C77C6DE2DE2A4

Cookie: JSESSIONID=$FPCSID

Response

[{

"fazId": null,

"reportName": "360-Degree Security Review",

"reportId": null,

"fazName": null,

"customerId": null,

"adom": "ADOM_FAZ_60X_60_FOR_CI",

"customerName": ""

},

{

"fazId": null,

"reportName": "Admin and System Events Report",

"reportId": null,

"fazName": null,

"customerId": null,

"adom": "ADOM_FAZ_60X_60_FOR_CI",

"customerName": ""

}

]

FortiAnalyzer reports

Get unassigned FortiAnalyzer reports that the specified customer can assign

Request

GET http://localhost:8080/fpc/api/customers/1/availablefazreports

Headers

accept: application/json

content-type: application/json

fpc-sid: 9F6FDBC7A65806CFA2322CA525CF912F

Cookie: JSESSIONID=$FPCSID

Response

{

"ipAddress": null,

"reportName": "360-Degree Security Review",

"startTime": null,

"endTime": null,

"fazName": "FAZ_TEST",

"adom": "ADOM_TEST",

"reportId": 319,

"customerId": null,

"fazId": 3,

"customerName": null,

"devices": null

}

Get FortiAnalyzer reports that are assigned to the specified customer

Request

GET http://localhost:8080/fpc/api/customers/2/assignedfazreports

Headers

accept: application/json

content-type: application/json

fpc-sid: 9F6FDBC7A65806CFA2322CA525CF912F

Cookie: JSESSIONID=$FPCSID

Response

{

"ipAddress": null,

"reportName": "360-Degree Security Review",

"startTime": null,

"endTime": null,

"fazName": "FAZ_TEST",

"adom": "ADOM_TEST",

"reportId": 319,

"customerId": 2,

"fazId": 3,

"customerName": TEST_customer,

"devices": null

}

Assign FortiAnalyzer reports to a customer

Request

POST http://localhost:8080/fpc/api/customers/3/assignfazreports

Headers

accept: application/json

content-type: application/json

fpc-sid: 9F6FDBC7A65806CFA2322CA525CF912F

Cookie: JSESSIONID=$FPCSID

Payload

[319,303]

Response

Status 200 OK

Unassign FortiAnalyzer reports from a customer

Request

POST http://localhost:8080/fpc/api/customers/3/unassignfazreports

Headers

accept: application/json

content-type: application/json

fpc-sid: 9F6FDBC7A65806CFA2322CA525CF912F

Cookie: JSESSIONID=$FPCSID

Payload

[319,303]

Response

Status 200 OK

Get all FortiAnalyzer units

Request

GET http://localhost:8080/fpc/api/fortianalyzers

Headers

accept: application/json

content-type: application/json

fpc-sid: 5CE163D9F2D2C185843C77C6DE2DE2A4

Cookie: JSESSIONID=$FPCSID

Response

[{

"adminUserName": "boweiliu",

"fazVersion": null,

"name": "jad",

"ipAddress": "0.0.0.0",

"id": 1,

"status": "D"

},

{

"adminUserName": "admin",

"fazVersion": "v6.0.4-build0292 190109 (GA)",

"name": "FAZ",

"ipAddress": "10.106.6.214",

"id": 3,

"status": "A"

}

]

Get detailed information for a specific FortiAnalyzer

Request

GET http://localhost:8080/fpc/api/fortianalyzers/1

Headers

accept: application/json

content-type: application/json

fpc-sid: 5CE163D9F2D2C185843C77C6DE2DE2A4

Cookie: JSESSIONID=$FPCSID

Response

{

"id": 1,

"name": "Faz1",

"ipAddress": "10.106.6.214",

"adminUserName": "admin",

"status": "A",

"lastRunTime": 1553263143000,

"xmlPort": 8080,

"jsonPort": 443,

"fazVersion": "v6.0.4-build0292 190109 (GA)"

}

Add a new FortiAnalyzer to FortiPortal

Request

POST http://localhost:8080/fpc/api/fortianalyzers

Headers

accept: application/json

content-type: application/json

fpc-sid: 5CE163D9F2D2C185843C77C6DE2DE2A4

Cookie: JSESSIONID=$FPCSID

Payload

{

"name": "testRestAPI",

"ipAddress": "10.106.6.217",

"adminUserName": "admin",

"adminPassword": "admin123",

"jsonPort": 443,

}

Response

{

"fazId": 3

}

Edit the information for an existing FortiAnalyzer

Request

POST http://localhost:8080/fpc/api/fortianalyzers/3

Headers

accept: application/json

content-type: application/json

fpc-sid: 5CE163D9F2D2C185843C77C6DE2DE2A4

Cookie: JSESSIONID=$FPCSID

Payload

{

"name": "testChangeNameRestAPI",

"ipAddress": "10.106.6.217",

"adminUserName": "admin",

"adminPassword": "admin123",

"jsonPort": 443

}

Response

Status 200 OK

Remove a FortiAnalyzer from FortiPortal

Request

DELETE http://localhost:8080/fpc/api/fortianalyzers/3

Headers

accept: application/json

content-type: application/json

fpc-sid: 5CE163D9F2D2C185843C77C6DE2DE2A4

Cookie: JSESSIONID=$FPCSID

Response

Status 200 OK

Update the list of FortiAnalyzer reports

Request

GET http://localhost:8080/fpc/api/fortianalyzers/3/pollnow

Headers

accept: application/json

content-type: application/json

fpc-sid: 5CE163D9F2D2C185843C77C6DE2DE2A4

Cookie: JSESSIONID=$FPCSID

Response

Status 200 OK

List FortiAnalyzer report templates for a specific FortiAnalyzer

Request

GET http://localhost:8080/fpc/api/fortianalyzers/3/reporttemplates

Headers

accept: application/json

content-type: application/json

fpc-sid: 5CE163D9F2D2C185843C77C6DE2DE2A4

Cookie: JSESSIONID=$FPCSID

Response

[{

"fazId": null,

"reportName": "360-Degree Security Review",

"reportId": null,

"fazName": null,

"customerId": null,

"adom": "ADOM_FAZ_60X_60_FOR_CI",

"customerName": ""

},

{

"fazId": null,

"reportName": "Admin and System Events Report",

"reportId": null,

"fazName": null,

"customerId": null,

"adom": "ADOM_FAZ_60X_60_FOR_CI",

"customerName": ""

}

]