调用AssociateQos接口将QoS策略应用到智能接入网关实例。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 否 | AssociateQos |
系统规定参数。取值:AssociateQos。 |
RegionId | String | 是 | cn-hangzhou |
QoS策略实例所在的地域ID。 |
QosId | String | 是 | qos-awfxl1adxeqyk**** |
QoS策略的实例ID。 |
SmartAGId | String | 是 | sag-c3m3n1khz58l**** |
需要应用QoS策略的智能接入网关实例ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 551CD836-9E46-4F2C-A167-B4363180A647 |
请求ID。 |
示例
请求示例
http(s)://[Endpoint]/?Action=AssociateQos
&QosId=qos-awfxl1adxeqyk****
&RegionId=cn-hangzhou
&SmartAGId=sag-c3m3n1khz58l****
&<公共请求参数>
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<?xml version="1.0" encoding="UTF-8" ?>
<AssociateQosResponse>
<RequestId>551CD836-9E46-4F2C-A167-B4363180A647</RequestId>
</AssociateQosResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "551CD836-9E46-4F2C-A167-B4363180A647"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | SmartAGAlreadyAssociateQos | The specified smart access gateway has already been associated with the specified QoS. | 智能接入网关已经绑定Qos。 |
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 | InternalError | An internal server error occurred. | 内部服务错误。 |
403 | InvalidId.SMARTAG | The specified smart access gateway instance id is invalid. | 无效的智能接入网关实例ID。 |
访问错误中心查看更多错误码。