You can call this operation to reset the password used to log on to Smart Access Gateway (SAG) APP.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | No | ResetSmartAccessGatewayClientUserPassword |
The operation that you want to perform. Set the value to ResetSmartAccessGatewayClientUserPassword. |
RegionId | String | Yes | cn-shanghai |
The ID of the region where the SAG APP instance is deployed. |
SmartAGId | String | Yes | sag-jdfnf********* |
The ID of the SAG APP instance. |
UserName | String | Yes | doctest |
The username of the client account whose password you want to reset. Usernames of client accounts added to the same SAG APP instance must be unique. |
Password | String | No | teste111 |
The new password. The password must be 8 to 32 characters in length, and can contain underscore (_) and hyphens (_). It must start with a letter or Chinese character. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | BE1F7E80-4558-4021-B6D2-B94DA8AAAF81 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=ResetSmartAccessGatewayClientUserPassword
&RegionId=cn-shanghai
&SmartAGId=sag-jdfnf*********
&UserName=doctest
&<Common request parameters>
Sample success responses
XML
format
<ResetSmartAccessGatewayClientUserPasswordResponse>
<RequestId>BE1F7E80-4558-4021-B6D2-B94DA8AAAF81</RequestId>
</ResetSmartAccessGatewayClientUserPasswordResponse>
JSON
format
{
"RequestId": "BE1F7E80-4558-4021-B6D2-B94DA8AAAF81"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | ClientUser.NameEmpty | You must specify UserName. | The error message returned because the username is not specified. |
400 | ClientUser.NameInvalid | The specified UserName is invalid. | The error message returned because the format of the specified username is invalid. |
400 | SAG.InstanceIdEmpty | You must specify the SAG instance ID. | The error message returned because the ID of the SAG instance is not specified. |
400 | SAG.InstanceNoFound | The specified SAG instance does not exist. | The error message returned because the specified SAG instance does not exist. |
For a list of error codes, visit the API Error Center.