Fortinet black logo

REST API Solution Guide

Fabric device status (/fabric/device/status)

Fabric device status (/fabric/device/status)

URL: https://[server_name]/api/fabric/device/status

This endpoint is used to retrieve the FortiAuthenticator status for FortiOS fabric display. It requires a valid Bearer token in the Authorization header.

Allowed methods

HTTP method Resource URI Action
GET /api/fabric/device/status Get FortiAuthenticator statistics and status

Response codes

In addition to the general codes defined in General API response codes, a POST request to this resource can also result in the following return codes:

Code Response content Description
200 OK FortiAuthenticator information
401 Unauthorized Invalid Bearer token

Example

Get FortiAuthenticator information:

curl -k -v -X GET \

https://[FortiAuthenticator_IP]/api/fabric/device/status \

-H 'Authorization: Bearer shrWNdu1xJRUgpcUi2bhYRX1Sl8pXe'

Response:

{

"build": {

"number": xxx,

"release_life_cycle": "dev"

},

"device_type": "fortiauthenticator",

"host_name": "FortiAuthenticator",

"model": "FACVM",

"serial_number": "FAC-VM0000000000",

"supported_api_versions": [

"v1"

],

"version": {

"major": x,

"minor": x,

"patch": x

}

}

Fabric device status (/fabric/device/status)

URL: https://[server_name]/api/fabric/device/status

This endpoint is used to retrieve the FortiAuthenticator status for FortiOS fabric display. It requires a valid Bearer token in the Authorization header.

Allowed methods

HTTP method Resource URI Action
GET /api/fabric/device/status Get FortiAuthenticator statistics and status

Response codes

In addition to the general codes defined in General API response codes, a POST request to this resource can also result in the following return codes:

Code Response content Description
200 OK FortiAuthenticator information
401 Unauthorized Invalid Bearer token

Example

Get FortiAuthenticator information:

curl -k -v -X GET \

https://[FortiAuthenticator_IP]/api/fabric/device/status \

-H 'Authorization: Bearer shrWNdu1xJRUgpcUi2bhYRX1Sl8pXe'

Response:

{

"build": {

"number": xxx,

"release_life_cycle": "dev"

},

"device_type": "fortiauthenticator",

"host_name": "FortiAuthenticator",

"model": "FACVM",

"serial_number": "FAC-VM0000000000",

"supported_api_versions": [

"v1"

],

"version": {

"major": x,

"minor": x,

"patch": x

}

}