Export license data

This API call exports license consumption data in an archive file.

Authentication

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.

Endpoint

/api/cluster/v2/license/consumption

Response format

The request produces an application/octet-stream payload.

Response

Response codes

Code
Description
200

OK - license consumption data export will start

400

Bad request. Provided time range is incorrect.

429

License consumption data is already being exported. Please wait for the first request to finish before requesting another export.

500

Operation failed

Example

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

curl -X GET "https://myManaged.cluster.com/api/cluster/v2/license/consumption?startTs=1584594000000&endTs=1591714800000"
-H "accept: application/octet-stream"

Request URL

https://myManaged.cluster.com/api/cluster/v2/license/consumption?startTs=1584594000000&endTs=1591714800000

Response body

ZIP file containing license data files in JSON format. For details on the JSON format, see Export licensing data.

Response code

200