调用DescribeEnsRouteEntryList查询路由条目列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ens:DescribeEnsRouteEntryList |
list |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RouteTableId |
string |
否 |
要查询的路由表的 ID。 |
vtb-hp3wdhynneo7fsclox8hs |
| RouteEntryId |
string |
否 |
要查询的路由条目的 ID。 |
rte-8vbdw66evgv44u2u7v3hx |
| DestinationCidrBlock |
string |
否 |
路由条目的目标网段 |
11.0.0.0/16 |
| RouteEntryType |
string |
否 |
路由条目的类型。取值:
|
Custom |
| NextHopType |
string |
否 |
自定义路由条目的下一跳的类型,取值:
|
Instance |
| NextHopId |
string |
否 |
下一跳实例 ID。 |
i-2zecshuv3axtr2gc4noa |
| RouteEntryName |
string |
否 |
路由条目的名称。 |
test0 |
| PageNumber |
integer |
否 |
查询列表的页码。取值:>0,默认查询第 1 页。 |
1 |
| PageSize |
integer |
否 |
分页查询时设置的每页行数。默认值:10,取值:10~100。 |
10 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| RouteEntrys |
array<object> |
路由条目信息。 |
|
|
array<object> |
路由条目信息。 |
||
| Status |
string |
路由条目的状态 |
Available |
| Type |
string |
路由条目的类型 |
Custom |
| Description |
string |
路由条目的描述信息。 |
测试 |
| RouteEntryName |
string |
路由条目的名称。 |
test0 |
| DestinationCidrBlock |
string |
路由条目的目标网段。 |
101.0.45.0/24 |
| RouteEntryId |
string |
路由条目的 ID。 |
rte-2zeksx7h436f5unk349m1 |
| RouteTableId |
string |
路由表 ID。 |
vtb-uf62p9o5cn35fi8xgurnm |
| NextHops |
array<object> |
下一跳信息。 |
|
|
object |
下一跳 |
||
| NextHopId |
string |
下一跳实例 ID。 |
i-bp1111yup9991890woxq |
| NextHopType |
string |
下一跳类型。 |
Instance |
| NextHopName |
string |
下一跳实例名称。 |
testInstance |
| SourceCidrBlock |
string |
源地址网段,配置网关路由表中路由条目时使用,交换机路由表中不支持。 |
10.XXX.XXX.0/24 |
| CreationTime |
string |
创建时间,UTC 时间。 |
2023-02-16T03:50:05Z |
| PageNumber |
integer |
当前查询页码。 |
1 |
| PageSize |
integer |
分页查询时每页的行数。 |
10 |
| TotalCount |
integer |
列表条目数。 |
7 |
示例
正常返回示例
JSON格式
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"RouteEntrys": [
{
"Status": "Available",
"Type": "Custom",
"Description": "测试",
"RouteEntryName": "test0",
"DestinationCidrBlock": "101.0.45.0/24",
"RouteEntryId": "rte-2zeksx7h436f5unk349m1",
"RouteTableId": "vtb-uf62p9o5cn35fi8xgurnm",
"NextHops": [
{
"NextHopId": "i-bp1111yup9991890woxq",
"NextHopType": "Instance",
"NextHopName": "testInstance"
}
],
"SourceCidrBlock": "10.XXX.XXX.0/24",
"CreationTime": "2023-02-16T03:50:05Z"
}
],
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 7
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 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 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。