Update cluster password policy
This page will soon be available only on the dedicated Dynatrace Managed Documentation site. Update your bookmarks.
This API call updates a cluster password policy.
Authentication
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.
Endpoint
/api/v1.0/onpremise/passwordPolicy
Parameter
Parameter | Type | Description | In | Required |
---|---|---|---|---|
body | PasswordPolicy | The JSON body of the request. Contains parameters of password policy configuration. | body | optional |
Request body objects
The PasswordPolicy
object
Password policy configuration.
Element | Type | Description | Required |
---|---|---|---|
minNumberOfDigits | integer | Minimum number of digits | required |
minNumberOfLowercaseChars | integer | Minimum number of lowercase characters | required |
minNumberOfNonAlphanumericChars | integer | Minimum number of non-alphanumeric characters | required |
minNumberOfUppercaseChars | integer | Minimum number of uppercase characters | required |
minPasswordLength | integer | Minimum password length | required |
Request body JSON model
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
1{2 "minNumberOfDigits": 1,3 "minNumberOfLowercaseChars": 1,4 "minNumberOfNonAlphanumericChars": 1,5 "minNumberOfUppercaseChars": 1,6 "minPasswordLength": 17}
Response
Response codes
Code | Type | Description |
---|---|---|
204 | - | Successfully updated. Response doesn't have a body. |
400 | ErrorEnvelope | Failed. The input is invalid. |
404 | - | Realm not found |
Example
In this example, you update the password policy for your managed deployment (myManaged.cluster.com
). You define:
Minimum password length
Minimum number of uppercase characters
Minimum number of lowercase characters
Minimum number of digits
Minimum number of non-alphanumeric characters
In return you receive a response code 204
indicating that the password policy was updated successfully.
Curl
1curl -X PUT "https://myManaged.cluster.com/api/v1.0/onpremise/passwordPolicy" -H "accept: */*" -H "Content-Type: application/json" -d "{\"realmId\":\"string\",\"minPasswordLength\":16,\"minNumberOfUppercaseChars\":2,\"minNumberOfLowercaseChars\":4,\"minNumberOfDigits\":2,\"minNumberOfNonAlphanumericChars\":4}"
Request URL
1https://myManaged.cluster.com/api/v1.0/onpremise/passwordPolicy
Response body
Successfully updated. Response doesn't have a body.
Response code
204