Fortinet white logo
Fortinet white logo

CLI Reference

execute api-user generate-key

execute api-user generate-key

Description: Generate an API token and token expiration time for an API user.

# execute api-user generate-key [entry-name] [expire duration in seconds]
Sample command:
execute api-user generate-key user1 500

Field

Description

entry-name Enter the name of the API user.
expire duration in seconds Enter the API token expiration time in seconds. Default is 3600 seconds.

execute api-user generate-key

execute api-user generate-key

Description: Generate an API token and token expiration time for an API user.

# execute api-user generate-key [entry-name] [expire duration in seconds]
Sample command:
execute api-user generate-key user1 500

Field

Description

entry-name Enter the name of the API user.
expire duration in seconds Enter the API token expiration time in seconds. Default is 3600 seconds.