Depending on the pricing tier that you have signed up to, your DataTrails tenancy will be subject to caps that set limits on resources such as the number of assets, users and app registrations that you have available to use.
You can monitor your cap resources using the DataTrails API. This article gives two methods that you can use to access the API.
Postman.
The API calls can be made using a REST API client such as Postman. You will need to configure an App Registration and configure Postman to request an access token for authentication using the client ID and the secret.
We have a blog post that explains how to set up Postman.
These are the available values for “?service=”:
- access_policies
- applications
- assets
- blobs
- compliance_policies
- locations
- tenancies/users
Write something in Python.
Scripting languages, like Python, can be used to write small applications to make the API calls and make monitoring more user friendly. You will need to create an App Registration and use the client ID and secret in the app to request and store an access token.
Below is an example, the code for it is attached to this article. To use it you will need to add your client ID and secret to lines 32 and 33:
params = {
'grant_type': 'client_credentials',
'client_id': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx',
'client_secret': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
}