Fortinet black logo

REST API Solution Guide

Fabric widget (/fabric/widget)

Fabric widget (/fabric/widget)

URL: https://[server_name]/api/v1/fabric/widget

This endpoint is used to retrieve a list of available fabric widgets that the FortiAuthenticator can provide. It requires a valid Bearer token in the Authentication header.

Allowed methods

HTTP method Resource URI Action
GET /api/v1/fabric/widget Get a list of available widgets and the visualization types that they support.

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 Widget information
401 Unauthorized Invalid Bearer token

Example

Get Widget Info:

curl -k -v -X GET \

https://[FortiAuthenticator_IP]/api/v1/fabric/device/widget \

-H 'Authorization: Bearer shrWNdu1xJRUgpcUi2bhYRX1Sl8pXe'

Response:

{

"data": [

{

"id": "sysinfo",

"lang_key": "sysinfo",

"supported_visualization_types": [

"key-value-pair"

]

},

],

"meta": {

"language": {

"en": {

"sysinfo": "System Information",

}

}

}

}

Fabric widget (/fabric/widget)

URL: https://[server_name]/api/v1/fabric/widget

This endpoint is used to retrieve a list of available fabric widgets that the FortiAuthenticator can provide. It requires a valid Bearer token in the Authentication header.

Allowed methods

HTTP method Resource URI Action
GET /api/v1/fabric/widget Get a list of available widgets and the visualization types that they support.

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 Widget information
401 Unauthorized Invalid Bearer token

Example

Get Widget Info:

curl -k -v -X GET \

https://[FortiAuthenticator_IP]/api/v1/fabric/device/widget \

-H 'Authorization: Bearer shrWNdu1xJRUgpcUi2bhYRX1Sl8pXe'

Response:

{

"data": [

{

"id": "sysinfo",

"lang_key": "sysinfo",

"supported_visualization_types": [

"key-value-pair"

]

},

],

"meta": {

"language": {

"en": {

"sysinfo": "System Information",

}

}

}

}