发布VPC路由到外部组件。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 | 
|---|---|---|---|---|
| RegionId | string | 是 | 实例所在的地域 ID。您可以通过调用 DescribeRegions 接口获取地域 ID。 | cn-hangzhou | 
| RouteEntries | array<object> | 否 | 需要发布的路由条目信息列表,最多支持传入 50 条路由。 | |
| object | 否 | 需要发布的路由条目信息列表。 | ||
| RouteTableId | string | 是 | 路由条目的路由表 ID。 | vtb-2ze3jgygk9bmsj23s**** | 
| DestinationCidrBlock | string | 是 | 路由条目的目标网段。 | 121.41.165.123/32 | 
| TargetType | string | 是 | 路由发布目标的类型 | ECR | 
| TargetInstanceId | string | 是 | 路由发布目标实例 ID | ecr-dhw2xsds5**** | 
| DryRun | boolean | 否 | 是否只预检此次请求。取值: 
 | false | 
返回参数
示例
正常返回示例
JSON格式
{
  "RequestId": "980960B0-2969-40BF-8542-EBB34FD358AB"
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 | 
|---|---|---|---|
| 400 | IncorrectStatus.Vpc | The status of %s [%s] is incorrect. | 当前实例状态非稳态 | 
| 400 | ResourceNotFound.RouteEntry | The specified resource routeEntry is not found. | 指定的路由条目不存在 | 
| 400 | IncorrectStatus.RouteEntry | The status of %s [%s] is incorrect. | 路由条目处于非稳态 | 
| 400 | Forbidden.OperateCustomRouteTable | The operation is forbidden because publish route entry in custom route table. | 操作被禁止,因为不允许发布自定义路由表中的路由条目。 | 
| 400 | IncorrectStatus.RouteEntryPublishStatus | Route entry publish status is incorrect. | 路由条目的路由发布状态不正确。 | 
| 400 | ResourceNotAssociated.TargetInstance | The target instance is not associated with vpc. | 路由发布的目标实例没有和VPC关联。 | 
| 400 | OperationDenied.UnsupportedTargetType | The operation is not allowed because the target type is not supported. | 操作被拒绝,因为路由发布目标的类型当前不支持。 | 
| 400 | IncorrectStatus.RouteTable | The route table is in an invalid state. | 指定的路由表状态不对 | 
| 400 | OperationUnsupported.PublishSystemRouteEntry | Publishing system route entry is unsupported. | 发布系统路由操作不支持。 | 
| 400 | OperationUnsupported.UnsupportedNextHop | Unsupported nexthop type for route entry publish operation. | 路由条目的下一跳类型不支持发布。 | 
| 400 | OperationUnsupported.PublishPrefixListRouteEntry | Publishing prefix list route entry is unsupported. | 发布路由前缀列表路由操作不支持。 | 
访问错误中心查看更多错误码。
变更历史
| 变更时间 | 变更内容概要 | 操作 | 
|---|
暂无变更历史
