Update cluster password policy
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
The JSON body of the request. Contains parameters of password policy configuration.
Request body objects
The PasswordPolicy
object
Password policy configuration.
Minimum number of digits
Minimum number of lowercase characters
Minimum number of non-alphanumeric characters
Minimum number of uppercase characters
Minimum password length
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.
{"minNumberOfDigits": 1,"minNumberOfLowercaseChars": 1,"minNumberOfNonAlphanumericChars": 1,"minNumberOfUppercaseChars": 1,"minPasswordLength": 1}
Response
Response codes
Successfully updated. Response doesn't have a body.
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
curl -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
https://myManaged.cluster.com/api/v1.0/onpremise/passwordPolicy
Response body
Successfully updated. Response doesn't have a body.
Response code
204