Gets properties of a metric unit.
The request produces an application/json
payload.
GET | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/units/{unitId} |
Environment ActiveGateCluster ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/units/{unitId} |
To execute this request, you need an access token with metrics.read
scope.
To learn how to obtain and use it, see Tokens and authentication.
The ID of the required unit.
Not found. The requested resource is not found or the query is incorrect.
Unit
objectThe metadata of a unit.
A short description of the unit.
The display name of the unit.
The plural display name of the unit.
The symbol of the unit.
The ID of the unit.
{"description": "The second is the base unit of time and defined as 1/86400 of a day.","displayName": "second","displayNamePlural": "seconds","symbol": "s","unitId": "Second"}
In this example, the request retrieves metadata of the Ratio unit.
The API token is passed in the Authorization header.
curl --request GET \--url https://mySampleEnv.live.dynatrace.com//api/v2/units/MebiByte \--header 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'
https://mySampleEnv.live.dynatrace.com//api/v2/units/MebiByte
{"unitId": "MebiByte","displayName": "mebibyte","symbol": "MiB","description": "1048576.0 byte"}
200