Sets the password policy for an instance. Returns (Task)
| Name | Description |
|---|---|
| instance | The instance to set the password policy for |
| newPolicy | The new password policy to apply |
Example in C#
// Returns: nothing
await client.SetInstancePasswordPolicyAsync(InstanceInfo instance, PasswordPolicy newPolicy);
Example in CURL
curl -X PUT \
https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/passwordpolicy \
-H 'Authorization: Bearer TOKEN_GOES_HERE' \
-H 'Content-Type: application/json' \
-d '{
"$type":"Feenics.Keep.WebApi.Model.PasswordPolicy, Feenics.Keep.WebApi.Model",
"ForcePasswordChangeSpan":"90.00:00:00",
"PasswordComplexity":1,
"MinimumPasswordLength":8,
"MaximumFailedAttempts":5,
"LockoutDuration":"00:15:00",
"PasswordHistoryTimeToKeep":"365.00:00:00"
}'