Import connections into your active environment either by using a connection configuration file or by creating and configuring them directly through the ADK CLI.

Importing Connection using a Connection file

The orchestrate connections import command allows you to import connections into the watsonx Orchestrate platform using a YAML file.

ArgumentDescription
--file (-f)A path the the yaml connection spec definition
[BASH]
orchestrate connections import --file <path_to_file>

Importing Connection direct in the CLI

If you don’t have a preconfigured YAML file for your connection, you can create and import it directly using the CLI.

The first step is to assign an App ID to the connection. You can do this with the following command, where <my_app_id> is a unique identifier for your connection:

ArgumentDescription
--app-id (-a)A unique identifier used to refrence the connection
[BASH]
orchestrate connections add --app-id <unique app id>

This command only imports the connection into your active environment. To configure the connection settings, use the orchestrate connections configure command. For more information, see Configuring the imported connection.

Configuring the imported connection

After you have imported a connection you can configure the draft and live environments. If you are working against the local instance then only draft is supported.

[BASH]
orchestrate connections configure --app-id <app id> --env <connection environment> --kind <connection kind> --type <connection type> --url <url of external service>
ArgumentDescription
--app-id (-a)The app id of the connection you want to configure
--environment (--env)The environment you want to configure the connection for. Valid options: [live|draft]
--kind (-k)The kind of connection used to access the external service. `[basic|bearer|api_key|oauth_auth_on_behalf_of_flow|key_value|kv]
--type (-t)The type of credentials. --type team will mean the credentials apply to all users, --type member will mean each user will have to provide their own credentials. [member|team]
--server-url (--url)The URL of the external service. This will be used as the server for OpenAPI tools and exposed for use in Python tools.
--ssoDoes OAuth require an identity provider. Required for OAuth connections kinds.
--idp-token-useThe token use value for the identity provider request. Required for OAuth connections kinds.
--idp-token-typeThe token type value for the identity provider request. Required for OAuth connections kinds.
--idp-token-headerThe headers used in the identity provider request.
--idp-token-typeThe headers used in the app token server request.