Dynatrace Platform Subscription API - GET cost allocation

Lists Dynatrace Platform Subscription usage data by cost allocation field.

The request produces an application/json payload.

GET

https://api.dynatrace.com/v1/subscriptions/{subscription-uuid}/cost-allocation

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 OAuth clients.

Parameters

ParameterTypeDescriptionInRequired
subscription-uuidstring

The UUID of the requested subscription.

Fetch the list of subscriptions via the GET all subscriptions request. (required)

pathoptional
fieldstring

Field by which costs and usage should be split. Allowed values: COSTCENTER, PRODUCT (required unless page-key is provided)

queryoptional
environment-idstring

The identifier of an environment. (required unless page-key is provided)

queryoptional
fromstring

The start of the requested timeframe in 2021-05-01 format.

queryoptional
tostring

The end of the requested timeframe in 2021-05-01 format.

queryoptional
page-sizenumber

Defines the requested number of entries for the next page.

queryoptional
page-keystring

A base64 encoded key to retrieve a specific page. If this query parameter is set, no other query parameters can be set.

queryoptional

Response

Response codes

CodeTypeDescription
200PaginatedEnvironmentBreakdownDto

Success. The response contains a page of the requested chargeback breakdown.

400-

The request was unacceptable, often due to missing a required parameter

401-

No valid session provided

403-

Access denied

500-

Something went wrong on Account Management's end

Response body objects

The PaginatedEnvironmentBreakdownDto object

ElementTypeDescription
environmentIdstring

Identifier of the environment

fieldstring

Field used to generate the breakdown. Can be COSTCENTER or PRODUCT

recordsstring[]

List of individual breakdown entries.

nextPageKeystring

Key to request the next page.

Response body JSON model

{
"environmentId": "string",
"field": "string",
"records": [
"string"
],
"nextPageKey": "string"
}