调用ModifySmartAccessGatewayClientUser接口修改智能接入网关App实例客户端的带宽和邮箱地址。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ModifySmartAccessGatewayClientUser |
要执行的操作。取值:ModifySmartAccessGatewayClientUser。 |
RegionId | String | 是 | cn-shanghai |
智能接入网关App实例所属地域ID。 |
SmartAGId | String | 是 | sag-rz2e23c0e78ema**** |
智能接入网关App实例ID。 |
UserName | String | 是 | username |
客户端的用户名。 |
Bandwidth | Integer | 是 | 1 |
客户端可使用的带宽。单位:Kbps。 取值范围:1~20000。 |
String | 否 | username@example.com |
客户端的邮箱地址。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
UserName | String | username |
客户端的用户名。 |
RequestId | String | 5F0078B5-8AAD-4B53-8351-4C91B8EA528A |
请求ID。 |
UserMail | String | username@example.com |
客户端的邮箱地址。 |
Bandwidth | Integer | 1 |
客户端可使用的带宽。单位:Kbps。 |
ClientIp | String | 10.10.10.1 |
客户端的IP地址。 |
示例
请求示例
http(s)://[Endpoint]/?Action=ModifySmartAccessGatewayClientUser
&RegionId=cn-shanghai
&SmartAGId=sag-rz2e23c0e78ema****
&UserName=username
&Bandwidth=1
&Email=username@example.com
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifySmartAccessGatewayClientUserResponse>
<UserName>username</UserName>
<RequestId>5F0078B5-8AAD-4B53-8351-4C91B8EA528A</RequestId>
<UserMail>username@example.com</UserMail>
<Bandwidth>1</Bandwidth>
<ClientIp>10.10.10.1</ClientIp>
</ModifySmartAccessGatewayClientUserResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"UserName" : "username",
"RequestId" : "5F0078B5-8AAD-4B53-8351-4C91B8EA528A",
"UserMail" : "username@example.com",
"Bandwidth" : 1,
"ClientIp" : "10.10.10.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. | 智能接入网关实例不存在。 |
400 | ResourceNotFound.User | The specified user is not found. | 指定的用户不存在。 |
访问错误中心查看更多错误码。