Fortinet white logo
Fortinet white logo

REST API Solution Guide

Licensing (/licensing/)

Licensing (/licensing/)

URL: https://[server_name]/api/[api_version]/licensing/

This endpoint is used to update the FortiAuthenticator license.

Supported fields

Field Description Type Required Other restrictions
license The .lic file file Yes Must be a valid .lic file

Allowed methods

HTTP method Resource URI Action
POST /api/v1/licensing/ Update the FortiAuthenticator license with a license file

Examples

curl -k -X POST \

https://[FAC_IP]/api/v1/licensing/ \

-H 'content-type: multipart/form-data' \

-u "webadmin"[hash]" \

-F 'license=@/path/to/license/VM-00000000.lic'

Response:

{

"expiry_date": "2019-06-14T00:00:00+00:00",

"ip": "192.168.60.908",

"license": "FAC-VM##############.lic",

"license_hash": "###########################",

"success_message": "Reboot process for license update of VM is started. Please wait for the FAC to restart before making new requests."

}

Licensing (/licensing/)

Licensing (/licensing/)

URL: https://[server_name]/api/[api_version]/licensing/

This endpoint is used to update the FortiAuthenticator license.

Supported fields

Field Description Type Required Other restrictions
license The .lic file file Yes Must be a valid .lic file

Allowed methods

HTTP method Resource URI Action
POST /api/v1/licensing/ Update the FortiAuthenticator license with a license file

Examples

curl -k -X POST \

https://[FAC_IP]/api/v1/licensing/ \

-H 'content-type: multipart/form-data' \

-u "webadmin"[hash]" \

-F 'license=@/path/to/license/VM-00000000.lic'

Response:

{

"expiry_date": "2019-06-14T00:00:00+00:00",

"ip": "192.168.60.908",

"license": "FAC-VM##############.lic",

"license_hash": "###########################",

"success_message": "Reboot process for license update of VM is started. Please wait for the FAC to restart before making new requests."

}