赛尔校园公共服务平台 Logo
平台使用
阿里云
百度云
移动云
智算服务
教育生态
登录 →
赛尔校园公共服务平台 Logo
平台使用 阿里云 百度云 移动云 智算服务 教育生态
登录
  1. 首页
  2. 阿里云
  3. 专有网络VPC
  4. 开发参考
  5. API参考
  6. API目录
  7. 网关终端节点
  8. AssociateRouteTablesWithVpcGatewayEndpoint - 关联路由表与网关终端节点

AssociateRouteTablesWithVpcGatewayEndpoint - 关联路由表与网关终端节点

  • 网关终端节点
  • 发布于 2025-04-22
  • 0 次阅读
文档编辑
文档编辑

调用AssociateRouteTablesWithVpcGatewayEndpoint接口关联路由表与网关终端节点。

接口说明

在调用本接口关联路由表与网关终端节点时,请了解以下内容:

  • 要关联路由表的网关终端节点实例不能处于 Creating(创建中)、Modifying(修改中)、Associating(绑定中)、Dissociating(解绑中)、Deleting(删除中)等中间状态。
  • 要关联的路由表不能处于 Creating(创建中)、Modifying(修改中)、Associating(绑定中)、Dissociating(解绑中)、Deleting(删除中)等中间状态。
  • 要关联的路由表和网关终端节点必须属于同一个 VPC。
  • 要关联的路由表不能是被共享的。
  • 不支持关联 VBR 路由表。
  • 一次最多关联 20 张路由表。
  • AssociateRouteTablesWithVpcGatewayEndpoint 接口属于异步接口,即系统返回一个实例 ID,但该路由表与网关终端节点尚未绑定成功,系统后台的绑定任务仍在进行。您可以调用 GetVpcGatewayEndpointAttribute 查询路由表与网关终端节点的绑定状态:
    • 当路由表与网关终端节点处于 Associating 状态时,表示路由表与网关终端节点正在绑定中。
    • 当路由表与网关终端节点处于 Created 状态时,表示路由表与网关终端节点绑定成功。
  • AssociateRouteTablesWithVpcGatewayEndpoint 接口不支持并发关联同一个路由表与网关终端节点。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用前面加 * 表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
vpc:AssociateRouteTablesWithVpcGatewayEndpointcreate
*GatewayEndpoint
acs:vpc:{#regionId}:{#accountId}:gatewayendpoint/{#GatewayEndpointId}
    无
无

请求参数

名称类型必填描述示例值
EndpointIdstring是

要关联路由表的网关终端节点实例 ID。

vpce-m5e371h5clm3uadih****
RouteTableIdsarray是

要关联的路由表 ID。N 的取值范围为 1~20,即一次最多绑定 20 张路由表。

string是

要关联的路由表 ID。N 的取值范围为 1~20,即一次最多绑定 20 张路由表。

vtb-m5elgtm3aj586iitr****
ClientTokenstring否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符,且不能超过 64 个字符。

说明 若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 可能不一样。
5A2CFF0E-5718-45B5-9D4D-70B3FF3898
DryRunboolean否

是否只预检此次请求,取值:

  • true:发送检查请求,不会关联路由表。检查项包括 AccessKey 是否有效、RAM 用户的授权情况和是否填写了必需参数。如果检查不通过,则返回对应错误。如果检查通过,会返回错误码DryRunOperation。

  • false(默认值):发送正常请求,通过检查后返回 2xx HTTP 状态码并关联路由表。

false
RegionIdstring是

要关联路由表的网关终端节点的地域 ID。

您可以通过调用 DescribeRegions 接口获取地域 ID。

cn-hangzhou

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

请求 ID。

59BDDA2D-FB52-59F9-9DC5-5EA7D6808B8E

示例

正常返回示例

JSON格式

{
  "RequestId": "59BDDA2D-FB52-59F9-9DC5-5EA7D6808B8E"
}

错误码

HTTP status code错误码错误信息描述
400OperationFailed.ConcurrentOperationThe operation is failed because of concurrent operation.-
400IdempotentParameterMismatchThe request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.-
400ResourceNotFound.GatewayEndpointThe specified resource gateway endpoint is not found.指定的GatewayEndpoint不存在
400IncorrectStatus.GatewayEndpointThe status of GatewayEndpoint [%s] is incorrect.-
400ResourceNotFound.ServiceNameThe specified resource service name is not found.-
400ResourceNotFound.PrefixListThe specified resource prefixList is not found.-
400ResourceNotFound.RouteTableThe specified resource routetable is not found.-
400Mismatch.VpcAndRouteTableThe vpc and routetable are mismatched.-
400IncorrectStatus.RouteTableThe status of route table [%s] is incorrect.-
400ResourceAlreadyExist.AssociationThe specified resource of [%s] is already exist.-
400VPC_ROUTE_ENTRY_CIDR_BLOCK_DUPLICATESpecified CIDR block is already exists.-
400VPC_SWITCH_STATUS_ERRORvSwitch status error, %s-
400QuotaExceeded.VpcRouteEntryNumThe quota of vpc route entry num is exceeded, usage %s/%s.-
400OperationUnsupported.DestinationCidrBlockOverlapWithVSwitchThe operation is failed because of destination CIDR block is in the CIDR of the VSwitch.-
400SystemBusySystem is busy, please try again later.-
400ForbbidenUser not authorized to operate on the specified resource.用户没有权限操作指定的资源。
400InvalidRegionId.NotFoundThe regionId provided does not exist in our records.指定的RegionId不存在。请检查该参数是否正确。
400IncorrectStatus.VpcThe status of vpc [%s] is incorrect.-
400IncorrectStatus.CenStatusThe status of vpc cenStatus [%s] is incorrect.-
400UnsupportedFeature.RouterTableTypeThe type of router table is not supported.您指定的路由表类型不支持。

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
2023-12-07OpenAPI 错误码发生变更查看变更详情
相关文章

CreateVpcGatewayEndpoint - 创建网关终端节点 2025-04-22 18:21

调用CreateVpcGatewayEndpoint接口创建网关终端节点。

DeleteVpcGatewayEndpoint - 删除网关终端节点 2025-04-22 18:21

调用DeleteVpcGatewayEndpoint接口删除网关终端节点。

UpdateVpcGatewayEndpointAttribute - 修改网关终端节点的配置信息 2025-04-22 18:21

调用UpdateVpcGatewayEndpointAttribute接口修改网关终端节点的配置信息。

ListVpcEndpointServicesByEndUser - 查询可使用的终端节点服务 2025-04-22 18:21

调用ListVpcEndpointServicesByEndUser查询可使用的终端节点服务。

GetVpcGatewayEndpointAttribute - 查询网关终端节点的属性 2025-04-22 18:21

调用GetVpcGatewayEndpointAttribute接口查询网关终端节点的属性。

ListVpcGatewayEndpoints - 查询VPC网关端点列表 2025-04-22 18:21

调用ListVpcGatewayEndpoints接口查询已创建的网关终端节点的列表。

目录
Copyright © 2025 your company All Rights Reserved. Powered by 赛尔网络.
京ICP备14022346号-15
gongan beian 京公网安备11010802041014号