Dynatrace platform subscription API v1 - GET term
Gets the start/end dates and unit-consumption limits of 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 |
subscriptionId | number | The ID of the required subscription. You can fetch the list of subscriptions with the GET subscriptions call. | path | required |
Response
Response codes
Code | Type | Description |
---|---|---|
200 | ClaSubscriptionTermDto | Success. The response contains the details of the current Dynatrace platform subscription. |
Response body objects
The ClaSubscriptionTermDto
object
Element | Type | Description |
---|---|---|
limit | number | The annual commit of the Dynatrace Platform Subscription. |
startDate | string | The start date of the subscription in |
endDate | string | The end date of the subscription in |
Response body JSON model
{"limit": 1,"startDate": "string","endDate": "string"}
Example
In this example, the request shows the term of the subscription with the ID of 40655 for the account with the ID of 2b794097-8ad2-4b32-b923-0131da2eeddf.
curl --request GET \--url 'https://api.dynatrace.com/sub/v1/accounts/2b794097-8ad2-4b32-b923-0131da2eeddf/subscriptions/40655/term' \--header 'Authorization: Bearer abcdefjhij1234567890'
Request URL
https://api.dynatrace.com/sub/v1/accounts/2b794097-8ad2-4b32-b923-0131da2eeddf/subscriptions/40655/term
Response body
{"limit": 300000,"startDate": "2020-07-23T00:00:00Z","endDate": "2021-07-22T23:59:59Z"}