You can set the time period for when an API key expires, and optionally authorize it to be used multiple times.
About this task
Applications exchange the API key exchange the API key for an access token.
Procedure
Follow these steps to set the API key timeout:
-
In the Cloud Manager, click
Settings.
-
In the Settings navigation list, click
Onboarding.
-
Click Edit next to the API Key timeout setting.
-
To specify a timeout value, select or type an integer value in the
Number field and then choose a unit of time (Seconds, Minutes, or Hours) in
the Unit field.
Note: The default timeout value is 5 minutes.
- Select Multiple use of apikey to allow applications to exchange
the API key for an access token multiple times.
By default, this option is enabled.
Note: For the toolkit, the API key is a single-use key, regardless of the settings
Multiple use of apikey .
To enable this setting with the
CLI, set the api_key_multiple_uses
field to
true
.
-
Click Save.
Results
API Key times out based on the set timeout value.