Cloud Enterprise Network (CEN) インスタンスに接続されているネットワークインスタンスのルートを照会します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
cen:DescribeCenChildInstanceRouteEntries |
get |
*CenInstance
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| CenId |
string |
必須 |
CEN インスタンスの ID。 |
cen-7qthudw0ll6jmc**** |
| ChildInstanceId |
string |
必須 |
ネットワークインスタンスの ID。 |
vpc-bp18sth14qii3pnvo**** |
| ChildInstanceType |
string |
必須 |
ネットワークインスタンスのタイプ。有効な値:
|
VPC |
| Status |
string |
任意 |
ルートのステータス。有効な値:
|
Active |
| PageNumber |
integer |
任意 |
返されるページの番号。デフォルト値: 1。 |
1 |
| PageSize |
integer |
任意 |
ページあたりのエントリ数。有効な値: 1 から 500。デフォルト値: 10。 |
10 |
| ChildInstanceRegionId |
string |
任意 |
ネットワークインスタンスがデプロイされているリージョンの ID。 DescribeChildInstanceRegions 操作を呼び出して、最新のリージョンリストをクエリできます。 |
cn-hangzhou |
| ChildInstanceRouteTableId |
string |
任意 |
ネットワークインスタンスのルートテーブルの ID。ルートテーブル ID を指定しない場合、システムはデフォルトで VPC のシステムルートテーブル内のルートを照会します。 |
vtb-p0wxx3apzgn6uqp3r**** |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| PageSize |
integer |
The number of entries returned per page. |
10 |
| RequestId |
string |
The ID of the request. |
17A57456-EF48-419D-9AE6-9B03D9996018 |
| PageNumber |
integer |
The page number of the returned page. |
1 |
| TotalCount |
integer |
The total number of entries returned. |
4 |
| CenRouteEntries |
object |
||
| CenRouteEntry |
array<object> |
The information about the route. |
|
|
array<object> |
|||
| Status |
string |
The route status. Valid values:
|
Active |
| Type |
string |
The route type. Valid values:
|
CEN |
| PublishStatus |
string |
Indicates whether the route is advertised to the CEN instance. Valid values:
|
Published |
| NextHopType |
string |
The type of the instance specified as the next hop in the route. Valid values:
|
VBR |
| OperationalMode |
boolean |
Indicates whether the route is allowed to be advertised to or withdrawn from the CEN instance. Valid values:
|
true |
| NextHopRegionId |
string |
The region ID of the instance specified as the next hop in the route. |
cn-hangzhou |
| NextHopInstanceId |
string |
The ID of the instance specified as the next hop in the route. |
vbr-bp13gtbhdp0pfqg6s**** |
| DestinationCidrBlock |
string |
The destination CIDR block of the route. |
10.0.0.0/24 |
| RouteTableId |
string |
The route table ID. |
vtb-bp1r9pvl4xen8s9ju**** |
| CenRouteMapRecords |
object |
||
| CenRouteMapRecord |
array<object> |
The routing policy that the routes match. |
|
|
object |
|||
| RouteMapId |
string |
The routing policy ID. |
cenrmap-w4yf7toozfol3q**** |
| RegionId |
string |
The region ID of the routing policy. |
cn-hangzhou |
| Conflicts |
object |
||
| Conflict |
array<object> |
A list of overlapping routes. |
|
|
object |
|||
| Status |
string |
The cause of the route error. Valid values:
|
conflict |
| DestinationCidrBlock |
string |
The destination CIDR block of the overlapping route. |
192.168.1.0/24 |
| InstanceId |
string |
The ID of the peer network instance on which the overlapping routes are found. |
ccn-0q3b7oviikmm9h**** |
| InstanceType |
string |
The type of the peer network instance on which the overlapping routes are found. Valid values:
|
CCN |
| RegionId |
string |
The region ID of the peer network instance on which the overlapping routes are found. |
ccn-cn-shanghai |
| Communities |
object |
||
| Community |
array |
The community attributes of the route entries. |
|
|
string |
The route community value. |
65501:1 |
|
| AsPaths |
object |
||
| AsPath |
array |
The AS paths of the routes. |
|
|
string |
The route AS path value. |
65501 |
例
成功レスポンス
JSONJSON
{
"PageSize": 10,
"RequestId": "17A57456-EF48-419D-9AE6-9B03D9996018",
"PageNumber": 1,
"TotalCount": 4,
"CenRouteEntries": {
"CenRouteEntry": [
{
"Status": "Active",
"Type": "CEN",
"PublishStatus": "Published",
"NextHopType": "VBR",
"OperationalMode": true,
"NextHopRegionId": "cn-hangzhou",
"NextHopInstanceId": "vbr-bp13gtbhdp0pfqg6s****",
"DestinationCidrBlock": "10.0.0.0/24",
"RouteTableId": "vtb-bp1r9pvl4xen8s9ju****",
"CenRouteMapRecords": {
"CenRouteMapRecord": [
{
"RouteMapId": "cenrmap-w4yf7toozfol3q****",
"RegionId": "cn-hangzhou"
}
]
},
"Conflicts": {
"Conflict": [
{
"Status": "conflict",
"DestinationCidrBlock": "192.168.1.0/24",
"InstanceId": "ccn-0q3b7oviikmm9h****",
"InstanceType": "CCN",
"RegionId": "ccn-cn-shanghai"
}
]
},
"Communities": {
"Community": [
"65501:1"
]
},
"AsPaths": {
"AsPath": [
"65501"
]
}
}
]
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidParameter | Invalid parameter. | |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | |
| 404 | InvalidRouteTableId.NotFound | The specified RouteTableId is not found. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。