This API call updates an existing environment or creates a new one.
To execute this request, you need the Service Provider API (ServiceProviderAPI
) permission assigned to your API token. Generate your API token via Cluster Management Console (CMC). To learn how to obtain and use it, see Cluster API - Authentication.
/api/cluster/v2/environments
The ID of the environment to update.
If you set the ID in the body as well, it must match this ID.
If true, a token management token with the scopes 'apiTokens.read' and 'apiTokens.write' (for usage with token API v2) and 'TenantTokenManagement' (for usage with token API v1) is created when creating a new environment. This token is then returned in the response body. It can be used within the newly created environment to create other tokens for configuring this environment.
JSON body of the request, containing updated parameters of the environment.
Environment
objectBasic configuration for an environment.
The display name of the environment.
The ID of the environment. Has to match [a-zA-Z0-9_-]{1,70}
Specifies whether the environment is a trial environment or a non-trial environment. Creating a trial environment is only possible if your license allows that. The default value is false (non-trial).
Indicates whether the environment is enabled or disabled. The default value is ENABLED.
DISABLED
ENABLED
A set of tags that are assigned to this environment. Every tag can have a maximum length of 100 characters.
The creation date of the environment in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
Environment level consumption and quotas information. Only returned if includeConsumptionInfo or includeUncachedConsumptionInfo param is true. If skipped when editing via PUT method then already set quotas will remain.
Environment level storage usage and limit information. Not returned if includeStorageInfo param is not true. If skipped when editing via PUT method then already set limits will remain.
EnvironmentQuotas
objectEnvironment level consumption and quotas information. Only returned if includeConsumptionInfo or includeUncachedConsumptionInfo param is true. If skipped when editing via PUT method then already set quotas will remain.
Host units consumption and quota information on environment level. If skipped when editing via PUT method then already set quota will remain.
DEM units consumption and quota information on environment level. Not set (and not editable) if DEM units is not enabled. If skipped when editing via PUT method then already set quotas will remain.
User sessions consumption and quota information on environment level. If skipped when editing via PUT method then already set quotas will remain.
User session properties consumption information on environment level.
Synthetic monitors consumption and quota information on environment level. Not set (and not editable) if neither Synthetic nor DEM units is enabled. If skipped when editing via PUT method then already set quotas will remain.
Custom metrics consumption and quota information on environment level. Not set (and not editable) if Custom metrics is not enabled. Not set (and not editable) if Davis data units is enabled. If skipped when editing via PUT method then already set quota will remain.
Davis data units consumption and quota information on environment level. Not set (and not editable) if Davis data units is not enabled. If skipped when editing via PUT method then already set quotas will remain.
Log monitoring consumption and quota information on environment level. Not set (and not editable) if Log monitoring is not enabled. Not set (and not editable) if Log monitoring is migrated to Davis data on license level. If skipped when editing via PUT method then already set quotas will remain.
HostUnitQuota
objectHost units consumption and quota information on environment level. If skipped when editing via PUT method then already set quota will remain.
Current environment usage.
Concurrent environment quota. Not set if unlimited. When updating via PUT method, skipping this field will set quota unlimited.
DemUnitsQuota
objectDEM units consumption and quota information on environment level. Not set (and not editable) if DEM units is not enabled. If skipped when editing via PUT method then already set quotas will remain.
Monthly environment consumption. Resets each calendar month.
Yearly environment consumption. Resets each year on license creation date anniversary.
Monthly environment quota. Not set if unlimited. When updating via PUT method, skipping this field will set quota unlimited.
Annual environment quota. Not set if unlimited. When updating via PUT method, skipping this field will set quota unlimited.
UserSessionsQuota
objectUser sessions consumption and quota information on environment level. If skipped when editing via PUT method then already set quotas will remain.
Yearly Mobile user sessions with replay environment consumption. Resets each year on license creation date anniversary.
Monthly Web user sessions with replay environment consumption. Resets each calendar month.
Monthly Mobile user sessions with replay environment consumption. Resets each calendar month.
Annual total User sessions environment quota. Not set if unlimited. When updating via PUT method, skipping this field will set quota unlimited.
Monthly total User sessions environment consumption. Resets each calendar month.
Yearly total User sessions environment consumption. Resets each year on license creation date anniversary.
Monthly total User sessions environment quota. Not set if unlimited. When updating via PUT method, skipping this field will set quota unlimited.
Yearly Web user sessions with replay environment consumption. Resets each year on license creation date anniversary.
Monthly Mobile user sessions environment consumption. Resets each calendar month.
Yearly Mobile user sessions environment consumption. Resets each year on license creation date anniversary.
SessionPropertiesQuota
objectUser session properties consumption information on environment level.
Monthly environment consumption. Resets each calendar month.
Yearly environment consumption. Resets each year on license creation date anniversary.
SyntheticQuota
objectSynthetic monitors consumption and quota information on environment level. Not set (and not editable) if neither Synthetic nor DEM units is enabled. If skipped when editing via PUT method then already set quotas will remain.
Monthly environment consumption. Resets each calendar month.
Yearly environment consumption. Resets each year on license creation date anniversary.
Monthly environment quota. Not set if unlimited. When updating via PUT method, skipping this field will set quota unlimited.
Annual environment quota. Not set if unlimited. When updating via PUT method, skipping this field will set quota unlimited.
CustomMetricsQuota
objectCustom metrics consumption and quota information on environment level. Not set (and not editable) if Custom metrics is not enabled. Not set (and not editable) if Davis data units is enabled. If skipped when editing via PUT method then already set quota will remain.
Current environment usage.
Concurrent environment quota. Not set if unlimited. When updating via PUT method, skipping this field will set quota unlimited.
DavisDataUnitsQuota
objectDavis data units consumption and quota information on environment level. Not set (and not editable) if Davis data units is not enabled. If skipped when editing via PUT method then already set quotas will remain.
Monthly environment consumption. Resets each calendar month.
Yearly environment consumption. Resets each year on license creation date anniversary.
Monthly environment quota. Not set if unlimited. When updating via PUT method, skipping this field will set quota unlimited.
Annual environment quota. Not set if unlimited. When updating via PUT method, skipping this field will set quota unlimited.
LogMonitoringQuota
objectLog monitoring consumption and quota information on environment level. Not set (and not editable) if Log monitoring is not enabled. Not set (and not editable) if Log monitoring is migrated to Davis data on license level. If skipped when editing via PUT method then already set quotas will remain.
Monthly environment consumption. Resets each calendar month.
Yearly environment consumption. Resets each year on license creation date anniversary.
Monthly environment quota. Not set if unlimited. When updating via PUT method, skipping this field will set quota unlimited.
Annual environment quota. Not set if unlimited. When updating via PUT method, skipping this field will set quota unlimited.
EnvironmentStorage
objectEnvironment level storage usage and limit information. Not returned if includeStorageInfo param is not true. If skipped when editing via PUT method then already set limits will remain.
Transaction storage usage and limit information on environment level. If skipped when editing via PUT method then already set limit will remain.
Session replay storage usage and limit information on environment level. If skipped when editing via PUT method then already set limit will remain.
Symbol files from mobile apps storage usage and limit information on environment level. If skipped when editing via PUT method then already set limit will remain.
Log monitoring storage usage and limit information on environment level. Not editable when Log monitoring is not allowed by license or not configured on cluster level. If skipped when editing via PUT method then already set limit will remain.
Service request level retention settings on environment level. Service code level retention time can't be greater than service request level retention time and both can't exceed one year.If skipped when editing via PUT method then already set limit will remain.
Service code level retention settings on environment level. Service code level retention time can't be greater than service request level retention time and both can't exceed one year.If skipped when editing via PUT method then already set limit will remain.
Real user monitoring retention settings on environment level. Can be set to any value from 1 to 35 days. If skipped when editing via PUT method then already set limit will remain.
Synthetic monitoring retention settings on environment level. Can be set to any value from 1 to 35 days. If skipped when editing via PUT method then already set limit will remain.
Session replay retention settings on environment level. Can be set to any value from 1 to 35 days. If skipped when editing via PUT method then already set limit will remain.
Log monitoring retention settings on environment level. Not editable when Log monitoring is not allowed by license or not configured on cluster level. Can be set to any value from 5 to 90 days. If skipped when editing via PUT method then already set limit will remain.
Maximum number of user actions generated per minute on environment level. Can be set to any value from 1 to 2147483646 or left unlimited. If skipped when editing via PUT method then already set limit will remain.
Maximum number of newly monitored entry point PurePaths captured per process/minute on environment level. Can be set to any value from 100 to 100000. If skipped when editing via PUT method then already set limit will remain.
TransactionStorage
objectTransaction storage usage and limit information on environment level. If skipped when editing via PUT method then already set limit will remain.
Percentage of truncation for new data.
Reason of truncation.
Maximum storage limit [bytes]
Currently used storage [bytes]
SessionReplayStorage
objectSession replay storage usage and limit information on environment level. If skipped when editing via PUT method then already set limit will remain.
Percentage of truncation for new data.
Reason of truncation.
Maximum storage limit [bytes]
Currently used storage [bytes]
SymbolFilesFromMobileApps
objectSymbol files from mobile apps storage usage and limit information on environment level. If skipped when editing via PUT method then already set limit will remain.
Maximum storage limit [bytes]
Currently used storage [bytes]
LogMonitoringStorage
objectLog monitoring storage usage and limit information on environment level. Not editable when Log monitoring is not allowed by license or not configured on cluster level. If skipped when editing via PUT method then already set limit will remain.
Maximum storage limit [bytes]
Currently used storage [bytes]
ServiceRequestLevelRetention
objectService request level retention settings on environment level. Service code level retention time can't be greater than service request level retention time and both can't exceed one year.If skipped when editing via PUT method then already set limit will remain.
Maximum retention limit [days]
Current data age [milliseconds]
Current data age [days]
ServiceCodeLevelRetention
objectService code level retention settings on environment level. Service code level retention time can't be greater than service request level retention time and both can't exceed one year.If skipped when editing via PUT method then already set limit will remain.
Maximum retention limit [days]
Current data age [milliseconds]
Current data age [days]
RealUserMonitoringRetention
objectReal user monitoring retention settings on environment level. Can be set to any value from 1 to 35 days. If skipped when editing via PUT method then already set limit will remain.
Maximum retention limit [days]
Current data age [milliseconds]
Current data age [days]
SyntheticMonitoringRetention
objectSynthetic monitoring retention settings on environment level. Can be set to any value from 1 to 35 days. If skipped when editing via PUT method then already set limit will remain.
Maximum retention limit [days]
Current data age [milliseconds]
Current data age [days]
SessionReplayRetention
objectSession replay retention settings on environment level. Can be set to any value from 1 to 35 days. If skipped when editing via PUT method then already set limit will remain.
Maximum retention limit [days]
Current data age [milliseconds]
Current data age [days]
LogMonitoringRetention
objectLog monitoring retention settings on environment level. Not editable when Log monitoring is not allowed by license or not configured on cluster level. Can be set to any value from 5 to 90 days. If skipped when editing via PUT method then already set limit will remain.
Maximum retention limit [days]
Current data age [milliseconds]
Current data age [days]
UserActionsPerMinute
objectMaximum number of user actions generated per minute on environment level. Can be set to any value from 1 to 2147483646 or left unlimited. If skipped when editing via PUT method then already set limit will remain.
Maximum traffic [units per minute]
TransactionTrafficQuota
objectMaximum number of newly monitored entry point PurePaths captured per process/minute on environment level. Can be set to any value from 100 to 100000. If skipped when editing via PUT method then already set limit will remain.
Maximum traffic [units per minute]
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"name": "example environment","state": "ENABLED","tags": ["tag1","tag2"],"trial": false}
Success. The new environment has been created. The response body contains the ID, the name and also a token management token if 'createToken' is 'true'.
Success. The environment has been updated. Response doesn't have a body.
Failed. The input is invalid.
EnvironmentShortRepresentation
objectThe short representation of an environment.
The ID of the Dynatrace entity.
The name of the Dynatrace entity.
A short description of the Dynatrace entity.
A token with the 'Token management' permission. Can be used to within the newly created environment to create other tokens for configuring this environment. This value is only set if an environment was created with the query parameter 'createToken=true'.
{"id": "string","name": "string","description": "string","tokenManagementToken": "string"}
Disables the environment with identifier 19a963a7-b19f-4382-964a-4df674c8eb8e
.
curl -X PUT "https://myManaged.cluster.com/api/cluster/v2/environments/19a963a7-b19f-4382-964a-4df674c8eb8e?createToken=false" -H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token fSRCdB7PQDSdFVANvNfSF" -H "Content-Type: application/json; charset=utf-8" -d "{\"name\":\"MyNewTeam\",\"id\":\"19a963a7-b19f-4382-964a-4df674c8eb8e\",\"trial\":false,\"state\":\"DISABLED\",\"tags\":[\"owner:john.wicked@dynatrace.com\",\"department:finance\"]}
https://myManaged.cluster.com/api/cluster/v2/environments/19a963a7-b19f-4382-964a-4df674c8eb8e?createToken=false
{"name": "MyNewTeam","state": "DISABLED"}
Response doesn't have a body.
204