Dynatrace Platform Subscription API - GET cost
Gets the aggregated costs data for a Dynatrace Platform Subscription.
The request produces an application/json
payload.
GET |
|
Authentication
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 Authentication.
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
accountUuid | string | The ID of the required account. You can find the UUID on the Account > Account management API page, during creation of an OAuth client. | path | required |
subscriptionUuid | string | The UUID of the requested subscription | path | required |
environmentIds | string[] | - | query | optional |
capabilityKeys | string[] | - | query | optional |
Response
Response codes
Code | Type | Description |
---|---|---|
200 | Subscription | - |
400 | The request was unacceptable, often due to missing a required parameter | |
401 | The bearer token is incorrect/expired or the requested account information does not match the bearer token | |
403 | Access denied | |
404 | The requested resource was not found | |
500 | Something went wrong on Account Management API's end |
Response body objects
The SubscriptionCostListDto
object
Element | Type | Description |
---|---|---|
data | Subscription | Subscription cost data |
lastModifiedTime | string | The time the subscription data was last modified in |
The SubscriptionCostDto
object
Element | Type | Description |
---|---|---|
startTime | string | The start time for the capability cost in |
endTime | string | The end time for the capability cost in |
value | number | The total cost for all the capabilities combined |
currencyCode | string | The currency code for the cost |
Response body JSON model
{
"data": [
{
"startTime": "string",
"endTime": "string",
"value": 1,
"currencyCode": "string"
}
],
"lastModifiedTime": "string"
}