{"type":"api","title":"Update local password policy","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/e1ae91f25de62367ac175351487a12de3ae46a25/c92e7384-b2f4-3d3b-8e8e-03a9325b07bb","info":{"title":"Crosswork RBAC API - Version 1","description":"Crosswork Role-based Access Control APIs","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"},"version":"1.0.0"},"security":[{"bearerAuth":[]}],"x-parser-conf":{"overview":{"markdownPath":"reference/INFRA/RBAC/rbac-v1-overview.md"}},"openapi":"3.0.1","servers":[{"url":"https://{cw_ip}:30603/crosswork/aaa/v1"}],"securitySchemes":{"bearerAuth":{"type":"apiKey","description":"Use a bearer token to authenticate requests. Include the token in the Authorization header with the prefix 'Bearer '.","name":"Authorization","in":"header"}}},"spec":{"tags":["rbac"],"summary":"Update local password policy.","description":"This API allows updates to the local password policies like password length, reuse of password, password expiration days, prevent reuse, etc.","operationId":"UpdatePasswordPolicy","requestBody":{"description":"Updated specification of the password policy","content":{"application/json":{"schema":{"title":"PasswordPolicyConfig request","required":["ChangePasswdOnFirstLogin","MinPasswordLength"],"type":"object","properties":{"MinPasswordLength":{"type":"number","description":"Password must contain at least 8 characters (valid range 8-80)"},"NoUsername":{"type":"boolean","description":"Password cannot contain user name or reverse of user name"},"NoCiscoVariant":{"type":"boolean","description":"Password cannot contain 'cisco' or 'ocsic' or any capitalized letter variant thereinby substituing '1','|',or '!' for i, or '0' for 'o' or '$' for 's'"},"NoCharRepetition":{"type":"boolean","description":"No character can be repeated more than three times consecutively"},"NumChangedCharsEnable":{"type":"boolean","description":"Boolean flag to indicate wheather NumChangedChars should be update or not"},"NumChangedChars":{"type":"number","description":"Must change at least 1 character(s) when creating a new password (valid range 1-80)"},"NumReuseLimitEnable":{"type":"boolean","description":"Boolean flag to indicate wheather NumReuseLimit should be update or not"},"NumReuseLimit":{"type":"number","description":"Cannot reuse the last 5 passwords (valid range 3-24)"},"PasswordReuseDaysEnable":{"type":"boolean","description":"Boolean flag to indicate wheather PasswordReuseDays should be update or not"},"PasswordReuseDays":{"type":"number","description":"Cannot reuse password used in the last 15 days (valid range 1-365) "},"FailedLoginsBefLoEnable":{"type":"boolean","description":"Boolean flag to indicate wheather FailedLoginsBeforeLockout should be update or not"},"FailedLoginsBeforeLockout":{"type":"number","description":"Lock user out after 5 unsuccessful login attempts (valid range 1-10)"},"LockOutUserTimeEnable":{"type":"boolean","description":"Boolean flag to indicate wheather LockOutUserTime should be update or not"},"LockOutUserTime":{"type":"number","description":"Lock user out for 6 minutes (valid range 1-900)"},"PasswordExpiryDaysEnable":{"type":"boolean","description":"Boolean flag to indicate wheather PasswordExpiryDays should be update or not"},"PasswordExpiryDays":{"type":"number","description":"Cannot reuse password used in the last 15 days (valid range 1-365) "},"DaysForWarningEnable":{"type":"boolean","description":"Boolean flag to indicate wheather DaysForWarning should be update or not"},"DaysForWarning":{"type":"number","description":"Warn 15 days before password expiry (valid range 7-60)"},"ChangePasswdOnFirstLogin":{"type":"boolean","description":"Change password on first login"}},"example":{"MinPasswordLength":8,"NoUsername":true,"NoCiscoVariant":true,"NoCharRepetition":true,"NumChangedCharsEnable":true,"NumChangedChars":1,"NumReuseLimitEnable":true,"NumReuseLimit":5,"PasswordReuseDaysEnable":true,"PasswordReuseDays":15,"FailedLoginsBefLoEnable":true,"FailedLoginsBeforeLockout":5,"LockOutUserTimeEnable":true,"LockOutUserTime":6,"PasswordExpiryDaysEnable":true,"PasswordExpiryDays":60,"DaysForWarningEnable":true,"DaysForWarning":15,"ChangePasswdOnFirstLogin":true},"$$ref":"#/components/schemas/rbacPasswordPolicyConfig"}}},"required":true},"responses":{"204":{"description":"No Content. The request was successful and there is no additional content in the response body.","content":{"application/json":{"schema":{"type":"object","properties":{"rbacEmpty":{"type":"object","properties":{}}},"$$ref":"#/components/schemas/rbacEmpty"}}}},"403":{"description":"Forbidden. The server recognizes the authentication credentials, but the client is not authorized to perform this request.","content":{}},"422":{"description":"Unprocessable Entity. The server understands the content type of the request entity, and the syntax of the request entity is correct, but it was unable to process the contained instructions.","content":{}},"500":{"description":"Internal Server Error. The server could not fulfill the request.","content":{}}},"x-codegen-request-body-name":"body","__originalOperationId":"UpdatePasswordPolicy","security":[{"bearerAuth":[]}],"method":"put","path":"/passwordPolicyConfig"}}