Obtain an API Token

You use the vRealize Automation Cloud console to obtain an API token.

Before making a call to vRealize Automation Cloud, you request an API token that authenticates you for authorized API connections. The API token is also known as a refresh token and is valid for 90 days.

Prerequisites

Verify that you are an organization owner in vRealize Automation Cloud with the Administrator service role for both Cloud Assembly and Service Broker.
Note: To obtain a token that allows you to perform administrative setup tasks such as onboarding a team in Cloud Assembly, the following steps show how to generate the token with higher privileges. For non-administrative tasks, you can generate the token with lower privileges.

Procedure

  1. Use your My VMware credentials to log in to https://console.cloud.vmware.com/csp/gateway/discovery.
  2. Click the drop-down arrow by your name.
  3. Click My Account.
  4. Click the API Tokens tab.
  5. Click Generate Token.
    1. Enter a Token Name.
    2. Under Define Scopes, select All Roles.
    3. Click Generate.
    The Token Generated window displays a token with the name that you specified and the name of your organization.
  6. Click the COPY icon.
    Clicking COPY ensures that you capture the exact string and is more reliable than using your pointer to copy the string.
  7. Paste the string in a text file and save the file.

What to do next

Using the Cloud Assembly IaaS API, you exchange the API token for an access token. See Get Your Access Token.