The Dynatrace Cost Allocation feature incorporates two fields for cost centers and products. You can use either or both fields. These fields reflect your company's cost allocation structure, enabling you to develop two distinct perspectives: one based on your cost centers (for example, departments) and another based on your products or services (for example, Applicationname or ApplicationID). Of course, you can customize the use of these fields to fit your company's organizational framework.
Use Dynatrace Platform Subscription API to manage your products and cost centers at scale.
Lists all the defined cost centers.
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 account.
You can find the UUID on the Account Management > Identity & access management > OAuth clients page, during creation of an OAuth client.
The number of the requested page. Can be increased as long as hasNextPage is true in the response.
Defines the requested number of entries for the next page.
Success. The response contains a page of allowed cost-allocation values for the costcenter field.
The request was unacceptable, often due to missing a required parameter
No valid session provided
Access denied
Something went wrong on Account Management's end
PaginatedFieldValueDto
objectIndicates if there is another page to load.
FieldValueDto
objectThe key of this value.
{"records": [{"key": "string"}],"hasNextPage": true}
Add the provided value to the cost center field.
The request produces an application/json
payload.
POST |
|
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 account.
You can find the UUID on the Account Management > Identity & access management > OAuth clients page, during creation of an OAuth client.
FieldValuesRequestDto
objectFieldValueDto
objectThe key of this value.
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"values": [{"key": "string"}]}
The response doesn't have a body. The values were added to the field.
The existing and provided values combined should not contain duplicate keys.
No valid session provided
Access denied
Something went wrong on Account Management's end
Replace the current values to the cost center field.
The request produces an application/json
payload.
PUT |
|
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 account.
You can find the UUID on the Account Management > Identity & access management > OAuth clients page, during creation of an OAuth client.
FieldValuesRequestDto
objectFieldValueDto
objectThe key of this value.
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"values": [{"key": "string"}]}
The response doesn't have a body. The values of the field were replaced.
The provided values should not contain duplicate keys.
No valid session provided
Access denied
Something went wrong on Account Management's end
Delete a value by key on the cost center field.
The request produces an application/json
payload.
DELETE |
|
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 account.
You can find the UUID on the Account Management > Identity & access management > OAuth clients page, during creation of an OAuth client.
The key for the field value.
The given value on the costcenter field was deleted.
The request was unacceptable, often due to missing a required parameter
No valid session provided
Access denied
Something went wrong on Account Management's end
Lists all the defined products.
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 account.
You can find the UUID on the Account Management > Identity & access management > OAuth clients page, during creation of an OAuth client.
The number of the requested page. Can be increased as long as hasNextPage is true in the response.
Defines the requested number of entries for the next page.
Success. The response contains a page of allowed cost-allocation values for the product field.
The request was unacceptable, often due to missing a required parameter
No valid session provided
Access denied
Something went wrong on Account Management's end
PaginatedFieldValueDto
objectIndicates if there is another page to load.
FieldValueDto
objectThe key of this value.
{"records": [{"key": "string"}],"hasNextPage": true}
Add the provided value to the product field.
The request produces an application/json
payload.
POST |
|
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 account.
You can find the UUID on the Account Management > Identity & access management > OAuth clients page, during creation of an OAuth client.
FieldValuesRequestDto
objectFieldValueDto
objectThe key of this value.
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"values": [{"key": "string"}]}
The response doesn't have a body. The values were added to the field.
The existing and provided values combined should not contain duplicate keys.
No valid session provided
Access denied
Something went wrong on Account Management's end
Replace the current values to the product field.
The request produces an application/json
payload.
PUT |
|
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 account.
You can find the UUID on the Account Management > Identity & access management > OAuth clients page, during creation of an OAuth client.
FieldValuesRequestDto
objectFieldValueDto
objectThe key of this value.
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"values": [{"key": "string"}]}
The response doesn't have a body. The values of the field were replaced.
The provided values should not contain duplicate keys.
No valid session provided
Access denied
Something went wrong on Account Management's end
Delete a value by key on the cost center field.
The request produces an application/json
payload.
DELETE |
|
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 account.
You can find the UUID on the Account Management > Identity & access management > OAuth clients page, during creation of an OAuth client.
The key for the field value.
The given value on the product field was deleted.
The request was unacceptable, often due to missing a required parameter
No valid session provided
Access denied
Something went wrong on Account Management's end