You can call this operation to delete a client account from a Smart Access Gateway (SAG) APP instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | No | DeleteSmartAccessGatewayClientUser |
The operation that you want to perform. Set the value to DeleteSmartAccessGatewayClientUser. |
RegionId | String | Yes | cn-shanghai |
The region where the SAG APP instance is deployed. |
SmartAGId | String | Yes | sag-hdjffn****** |
The ID of the SAG APP instance. |
UserName | String | Yes | doctest |
The username of the client account that you want to delete. Usernames of client accounts added to the same SAG APP instance are unique. For a client account, if you specify the username, you must also specify the password. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 09AD82DC-FE26-4B66-B526-2FA6BE82A4D3 |
The ID of the request. |
Examples
Sample requests
http(s)://smartag.cn-shanghai.aliyuncs.com/? Action=DeleteSmartAccessGatewayClientUser
&RegionId=cn-shanghai
&SmartAGId=sag-hdjffn******
&UserName=doctest
&<Common request parameters>
Sample success responses
XML
format
<DeleteSmartAccessGatewayClientUserResponse>
<RequestId>09AD82DC-FE26-4B66-B526-2FA6BE82A4D3</RequestId>
</DeleteSmartAccessGatewayClientUserResponse>
JSON
format
{
"RequestId": "09AD82DC-FE26-4B66-B526-2FA6BE82A4D3"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | SAG.InstanceIdEmpty | You must specify the SAG instance ID. | The error message returned because the SAG instance ID 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. |
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 | ClientUser.UserInUsing | The specified SAG user account is already in use this month. You cannot delete it. | The error message returned because the specified client account is already using SAG APP in the current month and cannot be deleted. |
For a list of error codes, visit the API Error Center.