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
-
Use your My
VMware credentials to log in to https://console.cloud.vmware.com/csp/gateway/discovery.
-
Click the drop-down arrow by your name.
-
Click My Account.
-
Click the API Tokens tab.
-
Click Generate
Token.
-
Enter a Token Name.
-
Under Define Scopes,
select All Roles.
-
Click Generate.
The Token Generated window displays a token with
the name that you specified and the name of your organization.
-
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.
-
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.