接口描述

获取子用户密码强度等策略

请求参数

Action
  • 类型:String
  • 必须:是
  • 描述:操作接口名,系统规定参数,取值:GetPasswordPolicy

返回参数

PasswordPolicy

需要的权限

Action
ram:GetPasswordPolicy
Resource
acs:ram:*:${AccountId}:*

操作示例

请求示例

https://ram.aliyuncs.com/?Action=GetPasswordPolicy
&AcccountAlias=myalias
&<公共请求参数>

返回示例

  • XML格式
    <GetPasswordPolicyResponse>
        <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
        <PasswordPolicy>
            <MinimumPasswordLength>12</MinimumPasswordLength>
            <RequireLowercaseCharacters>true</RequireLowercaseCharacters>
            <RequireUppercaseCharacters>true</RequireUppercaseCharacters>
            <RequireNumbers>true</RequireNumbers>
            <RequireSymbols>true</RequireSymbols>
        </PasswordPolicy>
    </GetPasswordPolicyResponse>
  • JSON格式
    {
        "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
        "PasswordPolicy": {
            "MinimumPasswordLength": 12,
            "RequireLowercaseCharacters": true,
            "RequireUppercaseCharacters": true,
            "RequireNumbers": true,
            "RequireSymbols": true
        }
    }