Data privacy API - GET configuration
Gets the global configuration of data privacy, affecting all your applications.
The request produces an application/json
payload.
GET | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/api/config/v1/dataPrivacy |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/dataPrivacy | |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/dataPrivacy |
Authentication
To execute this request, you need an access token with ReadConfig
scope.
To learn how to obtain and use it, see Tokens and authentication.
Parameters
The request doesn't provide any configurable parameters.
Response
Response codes
Code | Type | Description |
---|---|---|
200 | DataPrivacyAndSecurity | Success |
Response body objects
The DataPrivacyAndSecurity
object
Global configuration for data privacy and security.
Element | Type | Description |
---|---|---|
logAuditEvents | boolean | The audit logging is enabled ( |
maskIpAddressesAndGpsCoordinates | boolean | Masking of IP addresses and GPS coordinates is enabled ( |
maskPersonalDataInUris | boolean | Masking of personal data in URIs is enabled ( |
maskUserActionNames | boolean | Masking of user action names is enabled ( This masking is available only for web applications. |
metadata | ConfigurationMetadata | Metadata useful for debugging |
The ConfigurationMetadata
object
Metadata useful for debugging
Element | Type | Description |
---|---|---|
clusterVersion | string | Dynatrace version. |
configurationVersions | integer[] | A sorted list of the version numbers of the configuration. |
currentConfigurationVersions | string[] | A sorted list of version numbers of the configuration. |
Response body JSON model
1{2 "logAuditEvents": true,3 "maskIpAddressesAndGpsCoordinates": true,4 "maskPersonalDataInUris": true,5 "maskUserActionNames": true,6 "metadata": {7 "clusterVersion": "1.192.1",8 "configurationVersions": [9 4,10 211 ],12 "currentConfigurationVersions": [13 "1.0.4",14 "1.23"15 ]16 }17}
Example
In this example, the request fetches the current data privacy configuration.
The API token is passed in the Authorization header.
Curl
1curl -X GET \2 https://mySampleEnv.live.dynatrace.com/api/config/v1/dataPrivacy \3 -H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'
Request URL
1https://mySampleEnv.live.dynatrace.com/api/config/v1/dataPrivacy
Response body
1{2 "metadata": {3 "configurationVersions": [4 17,5 176 ],7 "clusterVersion": "1.211.2.20210129-043235"8 },9 "maskIpAddressesAndGpsCoordinates": true,10 "maskUserActionNames": false,11 "maskPersonalDataInUris": false,12 "logAuditEvents": true13}