Get report templates
Method |
URL |
Description |
Arguments |
Outputs |
---|---|---|---|---|
GET |
device/report/ |
Get report templates |
None |
JSON array |
Arguments (URL)
None.
Outputs
Parameter |
Type |
Description |
---|---|---|
results |
JSON array |
Array of report templates. One entry per template, each record contains a unique ID. |
Example request
curl -k -X GET -H "Authorization: Token 7f89ef48dc5bca218a8ac0268653ffafa74ce6a6ed7a8a703e113b13219b18a6" https://<ip_address>/fpc/v1/api/device/report/
Example response
{
"data" : {
"results" : [
{
"adom" : "FortiSandbox",
"customer" : [],
"fortianalyzer" : {
"host" : "XXX.XXX.XXX.XXX",
"id" : 1,
"last_poll_time" : "2022-09-12T21:31:45.259031Z",
"name" : "FPC-",
"numericVersion" : "7.0.4",
"polling" : 51,
"port" : 443,
"sn" : "FAZ-VMTMXXXXXXXX",
"status" : true,
"username" : "fortiportal",
"version" : "v7.0.4-build0306 220608 (GA)"
},
"id" : 1,
"name" : "FortiSandbox Default Report"
},
...
],
"totalResultsCount" : 73
},
"status" : {
"code" : 0,
"message" : "success"
}
}