调用ModifySmartAccessGatewayClientUser可修改用户带宽及邮箱地址。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 否 | ModifySmartAccessGatewayClientUser |
要执行的操作。 取值:ModifySmartAccessGatewayClientUser。 |
Bandwidth | Integer | 是 | 1 |
带宽,单位Kbps,最大2000Kbps。 |
RegionId | String | 是 | cn-shanghai |
智能接入网关APP实例地域。 |
SmartAGId | String | 是 | sag-kdhej*******8 |
智能接入网关APP实例ID。 |
UserName | String | 是 | doctest |
用户名,同一个智能接入网关APP实例下的用户名不可以重复。 用户名和密码相互依赖,若指定用户名则必须指定密码,反之,若指定密码则必须指定用户名。 |
String | 否 | test@example.com |
普通用户的邮箱地址。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 5F0078B5-8AAD-4B53-8351-4C91B8EA528A |
请求ID。 |
ClientIp | String | 10.**.**.** |
APP客户端的IP地址。 |
UserMail | String | test@example.com |
普通用户的邮箱地址。 |
UserName | String | doctes |
用户名。 |
Bandwidth | Integer | 1 |
带宽。 |
示例
请求示例
http(s)://[Endpoint]/?Action=ModifySmartAccessGatewayClientUser
&Bandwidth=1
&RegionId=cn-shanghai
&SmartAGId=sag-kdhej*******8
&UserName=doctest
&<公共请求参数>
正常返回示例
XML
格式
<ModifySmartAccessGatewayClientUserResponse>
<RequestId>5F0078B5-8AAD-4B53-8351-4C91B8EA528A</RequestId>
<UserMail>test@example.com</UserMail>
<UserName>doctes</UserName>
<Bandwidth>1</Bandwidth>
</ModifySmartAccessGatewayClientUserResponse>
JSON
格式
{
"RequestId": "5F0078B5-8AAD-4B53-8351-4C91B8EA528A",
"UserMail": "test@example.com",
"UserName": "doctes",
"Bandwidth": 1
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | ClientUser.BandwidthInvalid | The specified Bandwidth is invalid. | 用户带宽非法。 |
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. | 智能网关实例不存在。 |
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交