Learn how to use the REST API outside of the in-product API documentation UI.

The REST API enables you to interact with the VMware Aria Operations for Applications service (formerly known as Tanzu Observability by Wavefront) by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example, to tag sources automatically.

When you make REST API calls outside the REST API documentation UI, you must use a token to authenticate. An API token can be associated with a user account or service account See Manage API Tokens.

Make API Calls by Using a User Account

If you want to use your own user account to make REST API calls, use an API token associated with your user account:

  1. Log in to your service instance (https://<your_instance>.wavefront.com).
  2. Click the gear icon on the toolbar and click your user name.
  3. On the API Access tab, click the Copy icon next to the API token that you want to use.
  4. If you use curl, and want to get information about all cloud integrations in your environment, run:

    curl 'https://<your_instance>/api/v2/cloudintegration' -H 'Authorization: Bearer <your_api_token>'
    

    Here, <your_instance> is the name of your Operations for Applications service instance, and <your_api_token> is the API token for your user account.

Make API Calls by Using a Service Account

If you want to use a service account to make REST API calls, use an API token associated with that service account.

  1. Log in to your service instance (https://<your_instance>.wavefront.com).
  2. Click the gear icon on the toolbar and click Accounts.
  3. On the Service Accounts tab, click the service account that you want to use.
  4. Click the Copy icon next to the API token that you want to use.
  5. If you use curl, and want to get information about all cloud integrations in your environment, run:

    curl 'https://<your_instance>/api/v2/cloudintegration' -H 'Authorization: Bearer <service_account_api_token>'
    

    Here, <your_instance> is the name of your Operations for Applications service instance, and <service_account_api_token> is the API token for the service account.