When you connect to IBM® Workload Scheduler using Orchestration CLI for the first time,
you need to authenticate the connection using API Keys.
You must have completed the following tasks:
- Downloaded the package for Orchestration CLI.
- Created valid credentials in an authentication or authorization provider that
uses the open protocol standard OpenID Connect.
- Configured IBM Workload Scheduler
to specify the instance where the authentication or authorization provider is
running. For more information, see Configuring a user registry.
-
Navigate to the directory where you have downloaded the files for Orchestration CLI.
-
Run Orchestration CLI
from the command line.
Note: For windows, you can also use powershell to run the
file.
-
Type any Orchestration CLI
command.
Example:
ocli model list folder @
An error message with a web link to create the API Key is displayed.
-
Open the web link using any web browser.
The login page of the authentication provider that you configured is
displayed.
-
Enter the username and password for the authorization provider.
A message is displayed to indicate that the API Key has been successfully
generated. This API Key gets automatically updated in the
config.yaml file.
You have successfully established a connection with
IBM Workload Scheduler from
Orchestration CLI.
You can fill in other mandatory fields in the
config.yaml file and if already done, you can run any Orchestration CLI commands to achieve
specific results. For more information, see Running commands from Orchestration CLI.