The inspection API is very useful for fetching metadata about entities in Upsolver. Below are a few examples of common uses for the Inspection API. For these examples, I will be using cURL to execute the API calls and jq to parse the results. To build the API request we will need three things:
- An API Token
- The API server endpoint
- The Data Source ID
Generating an API token
An API token can be generated either via API or via the UI by selecting API Tokens from the MORE menu.
After you click Generate you will receive an API token
Determining your API server hostname
The API server can be found from the Clusters tab. After selecting the API cluster, you can copy the endpoint.
Determining your data source identifier.
The data source id can be found in the URL of the data source.