This API call exports license consumption data in an archive file.
To execute this request, you need the Service Provider API (ServiceProviderAPI
) permission assigned to your API token. Generate your API token via Cluster Management Console (CMC). To learn how to obtain and use it, see Cluster API - Authentication.
The request produces an application/octet-stream
payload.
/api/cluster/v2/license/consumption
The request produces an application/octet-stream
payload.
OK - license consumption data export will start
Bad request. Provided time range is incorrect.
License consumption data is already being exported. Please wait for the first request to finish before requesting another export.
Operation failed
In this example, you request license data from your Dynatrace Managed deployment in a range starting from March 19, 2020 6:00 (1584594000000) to June 9th, 2020 17:00 (1591714800000).
curl -X GET "https://myManaged.cluster.com/api/cluster/v2/license/consumption?startTs=1584594000000&endTs=1591714800000"-H "accept: application/octet-stream"
https://myManaged.cluster.com/api/cluster/v2/license/consumption?startTs=1584594000000&endTs=1591714800000
ZIP file containing license data files in JSON format. For details on the JSON format, see Export licensing data.
200