Fortinet black logo

CLI reference

execute api-key

execute api-key

Use this command to generate an API key for a system user.

Note

If you want to specify an API key instead of the key automatically generated by FortiNDR, the API key string must be 31 characters in length and contain only upper and lower case letters, and numbers.

Syntax

execute api-key <system-user-name> [user-specified-API-key]

execute api-key

Use this command to generate an API key for a system user.

Note

If you want to specify an API key instead of the key automatically generated by FortiNDR, the API key string must be 31 characters in length and contain only upper and lower case letters, and numbers.

Syntax

execute api-key <system-user-name> [user-specified-API-key]