调用 AssociateTransitRouterTrafficQosQueuePolicyToAttachment 接口,为TR连接启用流队列功能,操作说明和注意事项请参见启用/关闭流队列。
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | AssociateTransitRouterTrafficQosQueuePolicyToAttachment | 要执行的操作,取值为AssociateTransitRouterTrafficQosQueuePolicyToAttachment。 |
Version | String | 是 | 2020-04-01 | API版本信息,当前版本为2020-04-01。 |
TransitRouterAttachmentId | String | 是 | tr-attach-7qthudw0ll6jmc**** | TR连接的ID。 |
TransitRouterTrafficQosQueuePolicyId | String | 是 | tr-tqp-227ppm7ncp4ao7e54mkf7**** | 流队列策略的 ID。您可以调用DescribeTransitRouterTrafficQosQueuePolicies接口获取流队列策略的ID。 |
本接口无特有的返回参数。更多信息请见返回结构。
GET /?Action=AssociateTransitRouterTrafficQosQueuePolicyToAttachment&TransitRouterAttachmentId=tr-attach-7qthudw0ll6jmc****&TransitRouterTrafficQosQueuePolicyId=tr-tqp-227ppm7ncp4ao7e54mkf7**** HTTP/1.1 Host: open.volcengineapi.com Service: transitrouter Region: cn-guangzhou
{ "ResponseMetadata": { "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28D****", "Action": "AssociateTransitRouterTrafficQosQueuePolicyToAttachment", "Version": "2020-04-01", "Service": "transitrouter", "Region": "cn-guangzhou" }, "Result": {} }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidTransitRouter.InvalidBusinessStatus | The request is denied because the specified Transit Router is shut down due to arrears. | 指定的中转路由器欠费关停,不支持当前操作。 |
400 | InvalidTransitRouter.InvalidStatus | The specified Transit Router is not in the correct status for the request. | 指定的中转路由器所处状态无法响应该请求。 |
400 | InvalidTransitRouterAttachment.InvalidStatus | The specified Transit Router Attachment is not in the correct status for the request. | 指定的网络实例连接所处状态无法响应该请求。 |
400 | InvalidTransitRouterTrafficQosQueuePolicyAssociation.AttachmentTypeNotSupport | The specified Transit Router attachment type does not support to associate traffic qos queue policy. | 指定的网络实例连接类型不支持配置流队列策略。 |
400 | InvalidTransitRouterTrafficQosQueuePolicyAssociation.TransitRouterMismatch | The specified attachment and traffic qos queue policy do not belong to the same Transit Router. | 指定的网络实例连接和流队列策略不属于同一个中转路由器。 |
403 | Forbidden.NoPermissionToOperate | You are not authorized to operate the specified resource. | 无权限操作指定的资源。 |
404 | InvalidTransitRouterAttachment.NotFound | The specified Transit Router attachment does not exist. | 指定的网络实例连接不存在。 |
404 | InvalidTransitRouterTrafficQosQueuePolicy.NotFound | The specified Transit Router traffic qos queue policy does not exist. | 指定的流队列策略不存在。 |
409 | InvalidTransitRouterTrafficQosQueuePolicyAssociation.Conflict | The specified Transit Router attachment has already been associated with a traffic qos queue policy. | 指定的网络实例连接已配置流队列策略,请勿重复配置。 |