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.
curl
examples from the REST API UI to run them remotely, you must replace the CSRF token with your token. You must use: -H 'Authorization: Bearer <your_token>
in your API calls.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:
- Log in to your service instance (
https://<your_instance>.wavefront.com
). - Click the gear icon on the toolbar and click your user name.
- On the API Access tab, click the Copy icon next to the API token that you want to use.
-
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.
- Log in to your service instance (
https://<your_instance>.wavefront.com
). - Click the gear icon on the toolbar and click Accounts.
- On the Service Accounts tab, click the service account that you want to use.
- Click the Copy icon next to the API token that you want to use.
-
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.