Skip to main content

password_policies

Creates, updates, deletes, gets or lists a password_policies resource.

Overview​

Namepassword_policies
TypeResource
Idovh.dedicated_cloud.password_policies

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
denied_charsarrayList of denied characters in the password (wire: deniedChars)
digit_mandatorybooleanWhether or not a digit (0-9) is mandatory in the password (wire: digitMandatory)
history_checkintegerNumber of previous passwords to keep (wire: historyCheck)
letter_mandatorybooleanWhether or not a letter (a-z or A-Z) is mandatory in the password (wire: letterMandatory)
lowercase_letter_mandatorybooleanWhether or not a lowercase letter (a-z) is mandatory in the password (wire: lowercaseLetterMandatory)
max_lengthintegerMaximum lenght of the password (wire: maxLength)
min_lengthintegerMinimum lenght of the password (wire: minLength)
special_mandatorybooleanWhether or not a special character (\W or _) is mandatory in the password (wire: specialMandatory)
uppercase_letter_mandatorybooleanWhether or not an uppercase letter (A-Z) is mandatory in the password (wire: uppercaseLetterMandatory)
validity_periodintegerPassword validity period (in days) (wire: validityPeriod)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameGet the password policy. Returns the password rules for users: length, mandatory and denied characters, history and validity period.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
service_namestringDomain of the service (wire: serviceName)

SELECT examples​

Get the password policy. Returns the password rules for users: length, mandatory and denied characters, history and validity period.

SELECT
denied_chars,
digit_mandatory,
history_check,
letter_mandatory,
lowercase_letter_mandatory,
max_length,
min_length,
special_mandatory,
uppercase_letter_mandatory,
validity_period
FROM ovh.dedicated_cloud.password_policies
WHERE service_name = '{{ service_name }}' -- required
;