Connecting to watsonx Code Assistant for Z services

IBM® watsonx Code Assistant™ for Z can be deployed in the IBM Cloud® as well as on prem through a private IBM Cloud Pak for Data deployment. You need to specify the VS Code user settings that your organization is using. For details, see Set up a development environment topic.

There are two ways to connect to your service:
  • Use your personal API key (for IBM Cloud)
  • Use your username and API key (for IBM Cloud Pak for Data).
Depending on the version of the tool, you can either use the key icon in the IBM watsonx Code Assistant for Z view, or the Accounts icon in the VS Code sidebar.

Using an IBM Cloud API key

If you are using the IBM Cloud service, you must generate a service API key.
Note: If you are using the IBM Cloud service, you must generate a service API key. For more information, see Setting up watsonx Code Assistant for Z in IBM Cloud.
Method 1
  1. Click the key icon in the IBM watsonx Code Assistant for Z view.

  2. Paste your API key and press Enter to confirm or Escape to cancel.

    A dialog appears in the lower right of the editor that shows the key verification progress.

Method 2
  1. Click the Accounts icon in the lower left corner of VS Code.

  2. Select the menu Sign in with IBM Cloud or IBM to use IBM watsonx Code Assistant for Z.

  3. Paste your key and press Enter to confirm or Escape to cancel.

    A dialog appears in the lower right of the editor that shows the key verification progress.

Using IBM Cloud Pak for Data for on prem

If you are using the on prem service, you must generate a IBM Cloud Pak for Data username and API key.

Method 1
  1. Click the key icon in the IBM watsonx Code Assistant for Z view.

  2. Paste the URL to your IBM Cloud Pak for Data OpenShiftOpenShift® deployment. If you have provided it already in the user settings, press Enter to confirm or Escape to cancel.

  3. Enter or paste your username and press Enter to confirm.

  4. Enter or paste the API key and press Enter to confirm.

    A dialog appears in the lower right of the editor that shows the key verification progress.

Method 2
  1. Click the Accounts icon in the lower left corner of VS Code.

  2. Select the menu Sign in with IBM Cloud or IBM Cloud Pak for Data to use IBM watsonx Code Assistant for Z.

  3. Paste the URL to your IBM Cloud Pak for Data OpenShift deployment. If you have provided it already in the user settings, press Enter to confirm or Escape to cancel.

  4. Enter or paste your username and press Enter to confirm.

  5. Enter or paste the API key and press Enter to confirm.

    A dialog appears in the lower right of the editor that shows the key verification progress.

The Java™ developer is now ready to get started with converting COBOL code into Java.