Gets the cost 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.
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.
The UUID of the requested subscription.
Fetch the list of subscriptions via the GET all subscriptions request.
The start time of the query in 2021-05-01T15:11:00Z
format.
The end time of the query in 2021-05-01T15:11:00Z
format.
A list of environments for which you want to read the usage data. To specify several environments, separate them with a comma (,
).
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.
Failed. The request was unacceptable, often due to missing a required parameter
Failed. The bearer token is incorrect/expired or the requested account information does not match the bearer token
Access denied
Failed. The requested resource was not found
Failed. Something went wrong in Account Management API
SubscriptionEnvironmentCostListV2Dto
objectThe time the subscription data was last modified in 2021-05-01T15:11:00Z
format.
SubscriptionEnvironmentCostV2Dto
objectThe UUID of the environment
SubscriptionCapabilityCostDto
objectThe start time for the capability cost in 2021-05-01T15:11:00Z
format.
The end time for the capability cost in 2021-05-01T15:11:00Z
format.
The total cost for all the capabilities.
The currency of the cost.
The key of the subscription capability.
The display name of the subscription capability.
{"data": [{"environmentId": "string","cost": [{"startTime": "string","endTime": "string","value": 1,"currencyCode": "string","capabilityKey": "string","capabilityName": "string"}]}],"lastModifiedTime": "string"}