/v4/gateway/runs/getByBatchId.
Prerequisites
- The API key for your account.
- An administrator account to access the full deployment’s Control Center data.
Get the API key
- Log in as an administrator, then click Account > Account Settings.
- Under Account Settings, click API Key. Click Regenerate if you have not generated a key before.
- Copy the key and store it carefully as you will need it to make requests to the API.
Use the data gateway endpoint
The following is a basic call to the data export endpoint, executed with curl:your-api-key and your-domino-url in the previous command.
The standard JSON response object you receive has the following scheme:
batchId, which is an incrementing field that can be used as a cursor to fetch data in multiple batches. You can see in the previous response, after the array of runs objects, a nextBatchId parameter points to the next run to include. Use that ID as a query parameter in a subsequent request to get the next batch:
Accept: text/csv to request the data as CSV. On the Unix shell, you can write the response to a file with the > operator. This is a quick way to get data suitable for import into analysis tools:
Get all Workspaces
Use the following API call to retrieve all workspaces:The
com.cerebro.domino.controlCenter.cacheTimeToLiveInMinutes configuration key specifies the cache refresh as 30 minutes, by default. This might cause a delay in retrieving some workspaces.| Parameter | Required | Description |
|---|---|---|
projectId | ||
startingUserId | ||
organizationId | ||
hardwareTierId | ||
startDate | ✓ | Range must be in YYYYMMDD format |
endDate | ✓ | Range must be in YYYYMMDD format |