调用ResetSmartAccessGatewayClientUserPassword接口重置智能接入网关App实例客户端的密码。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String ResetSmartAccessGatewayClientUserPassword

系统规定参数。取值:ResetSmartAccessGatewayClientUserPassword

RegionId String cn-shanghai

智能接入网关App实例所属的地域ID。

SmartAGId String sag-kzo5dvms3dqii3****

智能接入网关App实例ID。

UserName String username

待重置密码的客户端的用户名。

Password String Password****

客户端的新密码。

  • 如果您不输入本参数,系统将随机生成一个新密码。
  • 如果您输入本参数,则表示您自定义新密码。

    密码长度为8~32个字符,必须以大小写字母或数字开头,可以包含下划线(_) 、at(@)和短划线(-)。

系统重置密码后,会通过邮件向您发送新的密码。

返回数据

名称 类型 示例值 描述
RequestId String BE1F7E80-4558-4021-B6D2-B94DA8AAAF81

请求ID。

示例

请求示例

http(s)://[Endpoint]/?Action=ResetSmartAccessGatewayClientUserPassword
&RegionId=cn-shanghai
&SmartAGId=sag-kzo5dvms3dqii3****
&UserName=username
&Password=Password****
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<?xml version="1.0" encoding="UTF-8" ?>
    <ResetSmartAccessGatewayClientUserPasswordResponse>
	<RequestId>BE1F7E80-4558-4021-B6D2-B94DA8AAAF81</RequestId>
    </ResetSmartAccessGatewayClientUserPasswordResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "BE1F7E80-4558-4021-B6D2-B94DA8AAAF81"
}

错误码

HttpCode 错误码 错误信息 描述
400 ClientUser.NameEmpty You must specify UserName. 用户名不能为空。
400 ClientUser.NameInvalid The specified UserName is invalid. 用户名格式非法。
400 SAG.InstanceIdEmpty You must specify the SAG instance ID. 智能接入网关实例ID为空。
400 SAG.InstanceNoFound The specified SAG instance does not exist. 智能接入网关实例不存在。
400 ClientUser.PasswordInvalid The specified password format is invalid. 密码格式非法。

访问错误中心查看更多错误码。