CreateEnsRouteEntry_边缘节点服务 ENS_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

流控信息

请求速率为60/1(s)。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
ens:CreateEnsRouteEntry
Create
全部资源
*

请求参数

字段名称字段详情
RouteTableIdstring

要创建自定义路由条目的路由表 ID。

示例值:vtb-bp1cifr72dioje82lse2j参考取值来源:
    DescribeEnsRouteTables
DestinationCidrBlockstring

自定义路由条目的目标网段。需满足以下要求:展开详情

示例值:120.XXX.XXX.0/24
NextHopTypestring

自定义路由条目的下一跳的类型,取值:展开详情

示例值:Instance枚举值:InstanceHaVipNetworkPeer
NextHopIdstring

自定义路由条目的下一跳实例的 ID。

示例值:i-5vb7leks9z4mxy1ay258
RouteEntryNamestring

要创建的自定义路由条目的名称。长度为 1~128 个字符,但不能以 http://或 https://开头。

示例值:test参考取值来源:
    DescribeEnsRouteEntryList
字符长度 <= 128字符长度 >= 2
Descriptionstring

自定义路由条目的描述信息。

示例值:example字符长度 <= 256字符长度 >= 2
SourceCidrBlockstring

源地址网段在配置网关路由表的路由条目时可用,但在配置交换机路由表的路由条目时不受支持。

示例值:172.XXX.XXX.0/24

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
RouteEntryIdstring

路由条目 ID。

示例值:rte-5vb5q8sk0lyoscx8539ds

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
Invalid%s
The specified parameter %s is invalid.诊断
400
Missing%s
You must specify the parameter %s.诊断
400
ens.interface.error
Failed to call API.诊断
400
InvalidRouteTableId.NotFound
Specified route table does not exist.诊断
400
IncorrectStatus.Network
The status of the network is incorrect.诊断
400
InvalidNetworkType.NotSupported
The specified network type does not supported.诊断
400
QuotaExceeded
Route entry quota exceeded in this route table.诊断
400
InvalidRouteEntry.Duplicate
The route entry already exists.诊断
400
InvalidInstanceId.NotFound
The specified InstanceId does not exist.诊断
400
InvalidCidrBlock.Malformed
Specified CIDR block is not valid.诊断
400
InvalidSourceCidrBlock.Malformed
Specified Source CIDR Block is not valid.诊断
400
InvalidSourceCidrBlock.NotSupported
The route table does not support the source CIDR block parameter.诊断
400
InvalidNextHopType.NotSupported
This next hop type is not supported.诊断
400
HaVipNotFound
The input parameter haVipId that is not found.诊断
400
IncorrectHaVipStatus
The status of the haVip is invalid.诊断
400
InstanceNotFound.NetworkPeerConnection
Network peer connection not found, please check the InstanceId.诊断
400
IncorrectStatus.NetworkPeerConnection
The status of the network peer connection is incorrect.诊断
400
IncorrectNetworkInterfaceStatus
The operation could not be completed because the status of the specified network interface is invalid for this action.诊断
400
NoPermission
Permission denied.诊断
400
InvalidParameter.%s
The specified field %s invalid. Please check it again.诊断

变更历史

变更时间变更内容概要操作
2025-03-13
变更错误码400
新增请求参数SourceCidrBlock
2025-01-10
变更请求参数NextHopType
2024-11-05
变更错误码400
变更请求参数NextHopType
2022-03-09
新增OpenAPI,创建自定义路由条目

相关示例