This API call retrieves a cluster password policy.
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.
/api/v1.0/onpremise/passwordPolicy
The request doesn't provide any configurable parameters.
Realm not found
PasswordPolicy
objectPassword 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
{"minNumberOfDigits": 1,"minNumberOfLowercaseChars": 1,"minNumberOfNonAlphanumericChars": 1,"minNumberOfUppercaseChars": 1,"minPasswordLength": 1}
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 -X GET "https://myManaged.cluster.com/api/v1.0/onpremise/passwordPolicy" -H "accept: application/json"
https://myManaged.cluster.com/api/v1.0/onpremise/passwordPolicy
{"realmId": "string","minPasswordLength": 12,"minNumberOfUppercaseChars": 1,"minNumberOfLowercaseChars": 1,"minNumberOfDigits": 1,"minNumberOfNonAlphanumericChars": 10}
200