调用AssociateTransitRouterForwardPolicyTableToAttachment接口,将指定的转发策略绑定至网络实例连接。
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | AssociateTransitRouterForwardPolicyTableToAttachment | 要执行的操作,取值为AssociateTransitRouterForwardPolicyTableToAttachment。 |
Version | String | 是 | 2020-04-01 | API版本信息,当前版本为2020-04-01。 |
TransitRouterAttachmentId | String | 是 | tr-attach-13n2l4c**** | 网络实例连接的ID。
|
TransitRouterForwardPolicyTableId | String | 是 | tr-fpt-1i5i8khf9m58gae5kcx6**** | 转发策略的ID。您可以调用DescribeTransitRouterForwardPolicyTables接口获取转发策略的ID。 |
本接口无特有的返回参数。更多信息请见返回结构。
GET /?Action=AssociateTransitRouterForwardPolicyTableToAttachment&Version=2020-04-01&TransitRouterAttachmentId=tr-attach-13n2l4c****&TransitRouterForwardPolicyTableId=tr-fpt-1i5i8khf9m58gae5kcx6**** HTTP/1.1 Host: open.volcengineapi.com Service: transitrouter Region: cn-guangzhou
{ "ResponseMetadata": { "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28D****", "Action": "AssociateTransitRouterForwardPolicyTableToAttachment", "Version": "2020-04-01", "Service": "transitrouter", "Region": "cn-guangzhou" }, "Result": {} }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
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 | InvalidTransitRouterForwardPolicyTableAssociation.TransitRouterMismatch | The specified attachment and forward policy table do not belong to the same Transit Router. | 指定的网络实例连接和转发策略不属于同一个中转路由器。 |
400 | InvalidTransitRouter.InvalidBusinessStatus | The request is denied because the specified Transit Router is shut down due to arrears. | 指定的中转路由器欠费关停,不支持当前操作。 |
400 | InvalidTransitRouterAttachment.InvalidBusinessStatus | The request is denied because the specified Transit Router attachment is shut down due to arrears. | 指定的网络实例连接欠费关停,不支持当前操作。 |
403 | Forbidden.NoPermissionToOperate | You are not authorized to operate the specified resource. | 无权限操作指定的资源。 |
404 | InvalidTransitRouterAttachment.NotFound | The specified Transit Router attachment does not exist. | 指定的网络实例连接不存在。 |
404 | InvalidTransitRouterForwardPolicyTable.NotFound | The specified Transit Router forward policy table does not exist. | 指定的转发策略不存在。 |
409 | InvalidTransitRouterForwardPolicyTableAssociation.Conflict | The specified Transit Router attachment has already been associated to a forward policy table. | 指定的网络实例连接已配置转发策略,请勿重复配置。 |