You need to enable JavaScript to run this app.
导航
AssociateTransitRouterTrafficQosQueuePolicyToAttachment
最近更新时间:2024.12.05 14:13:28首次发布时间:2024.11.15 11:02:32

调用 AssociateTransitRouterTrafficQosQueuePolicyToAttachment 接口,为TR连接启用流队列功能,操作说明和注意事项请参见启用/关闭流队列

请求参数

名称类型是否必选示例值描述
ActionStringAssociateTransitRouterTrafficQosQueuePolicyToAttachment要执行的操作,取值为AssociateTransitRouterTrafficQosQueuePolicyToAttachment。
VersionString2020-04-01API版本信息,当前版本为2020-04-01。

TransitRouterAttachmentId

String

tr-attach-7qthudw0ll6jmc****

TR连接的ID。
当前仅支持跨地域连接,您可以调用DescribeTransitRouterPeerAttachments接口获取跨地域连接的ID。

TransitRouterTrafficQosQueuePolicyIdStringtr-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错误码错误信息描述
400InvalidTransitRouter.InvalidBusinessStatusThe request is denied because the specified Transit Router is shut down due to arrears.指定的中转路由器欠费关停,不支持当前操作。
400InvalidTransitRouter.InvalidStatusThe specified Transit Router is not in the correct status for the request.指定的中转路由器所处状态无法响应该请求。
400InvalidTransitRouterAttachment.InvalidStatusThe specified Transit Router Attachment is not in the correct status for the request.指定的网络实例连接所处状态无法响应该请求。
400InvalidTransitRouterTrafficQosQueuePolicyAssociation.AttachmentTypeNotSupportThe specified Transit Router attachment type does not support to associate traffic qos queue policy.指定的网络实例连接类型不支持配置流队列策略。
400InvalidTransitRouterTrafficQosQueuePolicyAssociation.TransitRouterMismatchThe specified attachment and traffic qos queue policy do not belong to the same Transit Router.指定的网络实例连接和流队列策略不属于同一个中转路由器。
403Forbidden.NoPermissionToOperateYou are not authorized to operate the specified resource.无权限操作指定的资源。
404InvalidTransitRouterAttachment.NotFoundThe specified Transit Router attachment does not exist.指定的网络实例连接不存在。
404InvalidTransitRouterTrafficQosQueuePolicy.NotFoundThe specified Transit Router traffic qos queue policy does not exist.指定的流队列策略不存在。
409InvalidTransitRouterTrafficQosQueuePolicyAssociation.ConflictThe specified Transit Router attachment has already been associated with a traffic qos queue policy.指定的网络实例连接已配置流队列策略,请勿重复配置。