调用AssociateQos将Qos策略应用到智能接入网关实例。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
QosId | String | 是 | qos-awfxl1adxeqyk**** |
Qos策略的实例ID。 |
RegionId | String | 是 | cn-hangzhou |
Qos策略实例所在的地域ID。 |
SmartAGId | String | 是 | sag-c3m3n1khz58l****** |
需要应用Qos策略的智能接入网关实例ID。 |
Action | String | 否 | AssociateQos |
要执行的操作。 取值:AssociateQos。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 551CD836-9E46-4F2C-A167-B4363180A647 |
请求ID。 |
示例
请求示例
http(s)://[Endpoint]/?Action=AssociateQos
&QosId=qos-awfxl1adxeqyk****
&RegionId=cn-hangzhou
&SmartAGId=sag-c3m3n1khz58l******
&<公共请求参数>
正常返回示例
XML
格式
<AssociateQosResponse>
<RequestId>551CD836-9E46-4F2C-A167-B4363180A647</RequestId>
</AssociateQosResponse>
JSON
格式
{
"RequestId":"551CD836-9E46-4F2C-A167-B4363180A647"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | SmartAGAlreadyAssociateQos | The specified smart access gateway has already been associated with the specified QoS. | 智能接入网关已经绑定Qos。 |
403 | InternalError | An internal server error occurred. | 内部服务错误 |
400 | InvalidId.Qos | The specified QosId is invalid. | 您输入的参数"QosId"不合法。 |
400 | SAG.SoftwareNotSupport | The specified SAG software edition instance does not support ACL. | 智能接入网关软件版实例不支持ACL。 |
400 | QosPerSmartagAmountLimit | No more QoS can be associated with this smart access gateway. | 智能接入网关不能再绑定更多的Qos。 |
400 | MissParameter.RegionId | You must specify RegionId. | 您的输入中缺少必填参数"RegionId"。 |
400 | MissParameter.QosId | You must specify QosId. | 您的输入中缺少必填参数"QosId"。 |
400 | MissParameter.SmartAGId | You must specify SmartAGId. | 您的输入中缺少必填参数"SmartAGId"。 |
403 | InvalidId.SMARTAG | The specified smart access gateway instance id is invalid. | 无效的智能接入网关ID |
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交