Gets the usage data for a Dynatrace Platform Subscription split by monitoring environment.
The request produces an application/json
payload.
GET |
|
To execute this request, you need the Allow read access for usage and consumption resources (account-uac-read
) scope assigned to your token. To learn how to obtain and use it, see OAuth clients.
Parameter | Type | Description | In | Required |
---|---|---|---|---|
accountUuid | string | The ID of the required SaaS account. You can find the UUID on the Account Management > Identity & access management > OAuth clients page, during creation of an OAuth client. | path | required |
subscriptionUuid | string | The UUID of the requested subscription. Fetch the list of subscriptions via the GET all subscriptions request. | path | required |
startTime | string | The start of the requested timeframe in | query | required |
endTime | string | The end of the requested timeframe in | query | required |
environmentIds | string[] | A list of environments for which you want to read the usage data. To specify several environments, separate them with a comma ( | query | optional |
capabilityKeys | string[] | A list of capabilities for which you want to read the usage data. To specify several capabilities, separate them with a comma ( To obtain capability keys, use the GET subscriptions call and look for the capabilities field of the response. | query | optional |
Code | Type | Description |
---|---|---|
200 | Subscription | Success. The response contains the usage data of the subscription, split by environment. |
400 | - | Failed. The request was unacceptable, often due to missing a required parameter |
401 | - | Failed. The bearer token is incorrect/expired or the requested account information does not match the bearer token |
403 | - | Access denied |
404 | - | Failed. The requested resource was not found |
500 | - | Failed. Something went wrong in Account Management API |
SubscriptionEnvironmentUsageListV2Dto
objectElement | Type | Description |
---|---|---|
data | Subscription | Usage data of the subscription. |
lastModifiedTime | string | The time the subscription data was last modified in |
SubscriptionEnvironmentUsageV2Dto
objectElement | Type | Description |
---|---|---|
environmentId | string | The UUID of the environment |
usage | Subscription | A list of subscription usage for the environment. |
SubscriptionUsageDto
objectElement | Type | Description |
---|---|---|
capabilityKey | string | The key of the subscription capability. |
capabilityName | string | The display name of the subscription capability. |
startTime | string | The start time of the capability usage in |
endTime | string | The end time of the capability usage in |
value | number | The subscription usage by the capability. |
unitMeasure | string | The unit of the capability usage. |
{"data": [{"environmentId": "string","usage": [{"capabilityKey": "string","capabilityName": "string","startTime": "string","endTime": "string","value": 1,"unitMeasure": "string"}]}],"lastModifiedTime": "string"}