Get cluster password policy

The ServiceProviderAPI (Service Provider API) Api-Token scope is required to get the default realm password policy configuration using the Dynatrace API.

Endpoint

/api/v1.0/onpremise/passwordPolicy

Parameter

The request doesn't provide any configurable parameters.

Response

Response codes

Code Description
200

Success

404

Realm not found

Response body

The PasswordPolicy object

Password policy configuration.

Element Type Description
realmId string
minPasswordLength integer

Minimum password length

minNumberOfUppercaseChars integer

Minimum number of uppercase characters

minNumberOfLowercaseChars integer

Minimum number of lowercase characters

minNumberOfDigits integer

Minimum number of digits

minNumberOfNonAlphanumericChars integer

Minimum number of non-alphanumeric characters

Example

In this example, you query your managed deployment (myManaged.cluster.com) for its password policy. In return you receive information on current password policy settings.

Curl

curl -X GET "https://myManaged.cluster.com/api/v1.0/onpremise/passwordPolicy" -H  "accept: application/json"

Request URL

https://myManaged.cluster.com/api/v1.0/onpremise/passwordPolicy

Response body

{
  "realmId": "string",
  "minPasswordLength": 12,
  "minNumberOfUppercaseChars": 1,
  "minNumberOfLowercaseChars": 1,
  "minNumberOfDigits": 1,
  "minNumberOfNonAlphanumericChars": 10
}

Response code

200