Authenticating the Orchestration CLI using API Keys
You can use API Keys to authenticate the Orchestration CLI
About this task
The purpose of the following scenario is to show how to create and use an API Key to successfully authenticate the Orchestration CLI.
The scope of the scenario is to list every folder defined in an engine.
Procedure
- Login into the Dynamic Workload Console and navigate to Manage API Keys.
- In Manage API Keys, select an engine from the list and click Apply.
-
Create an API Key:
- Click Add new.
- Select either Personal or Service from the list.
- In Name, type API_Key_Name.
- If you set the API Key type to Service, select the relevant groups from the list.
- Click Submit.
- The API Key token is displayed in the dialogue box. Save it and store it in a secure place.
-
Authenticate the Orchestration CLI with the
API Key token:
-
Access the list of available folders using Orchestration CLI.
-
Enter the command:
ocli model list folder=@
.
-
Enter the command:
Results
You have accessed an engine from a Orchestration CLI authenticated with an API Key.