• Home
  • Dynatrace API
  • Configuration
  • Data privacy
  • GET configuration

Data privacy API - GET configuration

Gets the global configuration of data privacy, affecting all your applications.

The request produces an application/json payload.

GETManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/api/config/v1/dataPrivacy
SaaShttps://{your-environment-id}.live.dynatrace.com/api/config/v1/dataPrivacy
Environment ActiveGatehttps://{your-activegate-domain}/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

CodeTypeDescription
200DataPrivacyAndSecurity

Success

Response body objects

The DataPrivacyAndSecurity object

Global configuration for data privacy and security.

ElementTypeDescription
metadataConfigurationMetadata

Metadata useful for debugging

maskIpAddressesAndGpsCoordinatesboolean

Masking of IP addresses and GPS coordinates is enabled (true) or disabled (false).

maskUserActionNamesboolean

Masking of user action names is enabled (true) or disabled (false).

This masking is available only for web applications.

maskPersonalDataInUrisboolean

Masking of personal data in URIs is enabled (true) or disabled (false).

logAuditEventsboolean

The audit logging is enabled (true) or disabled (false).

The ConfigurationMetadata object

Metadata useful for debugging

ElementTypeDescription
configurationVersionsinteger[]

A sorted list of the version numbers of the configuration.

currentConfigurationVersionsstring[]

A sorted list of version numbers of the configuration.

clusterVersionstring

Dynatrace version.

Response body JSON model

json
{ "metadata": { "configurationVersions": [ 4, 2 ], "currentConfigurationVersions": [ "1.0.4", "1.23" ], "clusterVersion": "1.192.1" }, "maskIpAddressesAndGpsCoordinates": true, "maskUserActionNames": true, "maskPersonalDataInUris": true, "logAuditEvents": true }

Example

In this example, the request fetches the current data privacy configuration.

The API token is passed in the Authorization header.

Curl

bash
curl -X GET \ https://mySampleEnv.live.dynatrace.com/api/config/v1/dataPrivacy \ -H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'

Request URL

plaintext
https://mySampleEnv.live.dynatrace.com/api/config/v1/dataPrivacy

Response body

json
{ "metadata": { "configurationVersions": [ 17, 17 ], "clusterVersion": "1.211.2.20210129-043235" }, "maskIpAddressesAndGpsCoordinates": true, "maskUserActionNames": false, "maskPersonalDataInUris": false, "logAuditEvents": true }
Related topics
  • Data privacy and security

    Learn how Dynatrace makes itself GDPR compliant by applying the security measures required to protect private data.