ListTransitRouterVpcAttachments API では、Enterprise Edition のトランジットルーターにおける VPC 接続について、接続ステータス、課金方法、ゾーン、および接続先 VPC の vSwitch と Elastic Network Interface (ENI) などの詳細をクエリします。
操作説明
Enterprise Edition トランジットルーターの VPC 接続を照会するには、次のいずれかの方法があります。
Enterprise Edition トランジットルーターインスタンスの ID を指定して、そのすべての VPC 接続を照会します。
Cloud Enterprise Network (CEN) インスタンスの ID と Enterprise Edition トランジットルーターインスタンスのリージョン ID を指定して、そのすべての VPC 接続を照会します。
Enterprise Edition トランジットルーターインスタンスを含むリージョンの ID を指定して、そのリージョン内のすべての VPC 接続を照会します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
cen:ListTransitRouterVpcAttachments |
list |
*CenInstance
TransitRouterVpcAttachment
TransitRouterVpcAttachment
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| CenId |
string |
任意 |
CEN インスタンスの ID。 |
cen-j3jzhw1zpau2km**** |
| RegionId |
string |
任意 |
Enterprise Edition トランジットルーターがデプロイされているリージョンの ID。 DescribeRegions API を呼び出して、最新のリージョンリストを照会できます。 |
cn-hangzhou |
| TransitRouterAttachmentId |
string |
任意 |
VPC アタッチメントの ID。 |
tr-attach-nls9fzkfat8934**** |
| TransitRouterId |
string |
任意 |
Enterprise Edition トランジットルーターの ID。 |
tr-bp1su1ytdxtataupl**** |
| MaxResults |
integer |
任意 |
各ページで返されるエントリ数。デフォルト値は 20 です。 |
20 |
| NextToken |
string |
任意 |
次のリクエストで結果の次ページを取得するために使用するページネーショントークンです。
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| Tag |
array<object> |
任意 |
タグ。 最大 20 個のタグを指定できます。 |
|
|
object |
任意 |
|||
| Key |
string |
任意 |
タグキー。 タグキーの長さは 1 ~ 64 文字である必要があります。また、 |
tagtest |
| Value |
string |
任意 |
タグ値。 タグ値の長さは 0 ~ 128 文字です。 |
tagtest |
| VpcId |
string |
任意 |
VPC の ID。 |
vpc-bp1kbjcre9vtsebo1**** |
| OrderType |
string |
任意 |
ネットワークインスタンスの料金を支払うエンティティ。有効な値:
|
PayByCenOwner |
| Status |
string |
任意 |
VPC アタッチメントのステータス。有効な値:
|
Attached |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
返されるデータ。 |
||
| NextToken |
string |
次の結果ページを取得するためのトークン。
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| RequestId |
string |
リクエスト ID。 |
C97FF53F-3EF8-4883-B459-60E171924B23 |
| TotalCount |
integer |
エントリの総数。 |
1 |
| MaxResults |
integer |
各ページで返されるエントリ数。 |
20 |
| TransitRouterAttachments |
array<object> |
VPC アタッチメントのリスト。 |
|
|
array<object> |
|
||
| CreationTime |
string |
VPC アタッチメントが作成された時刻。 時刻は UTC で、 |
2021-06-15T02:14Z |
| Status |
string |
VPC アタッチメントのステータス。
|
Attached |
| VpcId |
string |
Virtual Private Cloud (VPC) の ID。 |
vpc-bp1h8vbrbcgohcju5**** |
| TransitRouterAttachmentId |
string |
VPC アタッチメントの ID。 |
tr-attach-nls9fzkfat8934**** |
| TransitRouterId |
string |
Enterprise Edition トランジットルーターの ID。 |
tr-bp1su1ytdxtataupl**** |
| ResourceType |
string |
アタッチ先のリソースタイプ。 値は常に VPC で、Virtual Private Cloud (VPC) を示します。 |
VPC |
| TransitRouterAttachmentDescription |
string |
VPC アタッチメントの説明。 |
testdesc |
| VpcOwnerId |
integer |
VPC を所有するアカウントの ID。 |
1250123456123456 |
| VpcRegionId |
string |
VPC がデプロイされているリージョンの ID。 |
cn-hangzhou |
| TransitRouterAttachmentName |
string |
VPC アタッチメントの名前。 |
testname |
| ZoneMappings |
array<object> |
VPC アタッチメントのゾーンマッピング。これには、関連付けられた VPC 内の vSwitch と Elastic Network Interface (ENI) が含まれます。 |
|
|
object |
|||
| ZoneId |
string |
アベイラビリティーゾーンの ID。 |
cn-hangzhou-h |
| VSwitchId |
string |
vSwitch の ID。 |
vsw-bp1a214sbus8z3b54**** |
| NetworkInterfaceId |
string |
Enterprise Edition トランジットルーターが vSwitch に作成する Elastic Network Interface (ENI) の ID。 |
eni-bp149hmyaqegerml**** |
| AutoPublishRouteEnabled |
boolean |
Enterprise Edition トランジットルーターが VPC にルートを自動的にアドバタイズするかどうかを示します。
|
true |
| ChargeType |
string |
VPC アタッチメントの課金方法。 値は常に POSTPAY で、従量課金を示します。 |
POSTPAY |
| Tags |
array<object> |
タグのリスト。 |
|
|
object |
|||
| Key |
string |
タグキー。 |
test |
| Value |
string |
タグ値。 |
test |
| OrderType |
string |
ネットワークインスタンスの料金負担者を指定します。有効な値:
|
PayByCenOwner |
| ManagedService |
string |
リソースが属するクラウドサービス。 |
SAS |
| TransitRouterVPCAttachmentOptions |
object |
VPC アタッチメントの機能属性。このパラメーターは非推奨です。代わりに Options パラメーターを使用することを推奨します。 |
|
|
string |
|
{ "ipv6Support": "disable" } |
|
| CenId |
string |
Cloud Enterprise Network (CEN) インスタンスの ID。 |
cen-j3jzhw1zpau2km**** |
| Options |
object |
機能属性のコレクション。 |
|
| Ipv6Support |
string |
IPv6 が有効かどうかを示します。
|
|
| ApplianceModeSupport |
string |
アプライアンスモードが有効かどうかを示します。
|
例
成功レスポンス
JSONJSON
{
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"RequestId": "C97FF53F-3EF8-4883-B459-60E171924B23",
"TotalCount": 1,
"MaxResults": 20,
"TransitRouterAttachments": [
{
"CreationTime": "2021-06-15T02:14Z",
"Status": "Attached",
"VpcId": "vpc-bp1h8vbrbcgohcju5****",
"TransitRouterAttachmentId": "tr-attach-nls9fzkfat8934****",
"TransitRouterId": "tr-bp1su1ytdxtataupl****",
"ResourceType": "VPC",
"TransitRouterAttachmentDescription": "testdesc",
"VpcOwnerId": 1250123456123456,
"VpcRegionId": "cn-hangzhou",
"TransitRouterAttachmentName": "testname",
"ZoneMappings": [
{
"ZoneId": "cn-hangzhou-h",
"VSwitchId": "vsw-bp1a214sbus8z3b54****",
"NetworkInterfaceId": "eni-bp149hmyaqegerml****"
}
],
"AutoPublishRouteEnabled": true,
"ChargeType": "POSTPAY",
"Tags": [
{
"Key": "test",
"Value": "test"
}
],
"OrderType": "PayByCenOwner",
"ManagedService": "SAS",
"TransitRouterVPCAttachmentOptions": {
"key": "{ \"ipv6Support\": \"disable\" }"
},
"CenId": "cen-j3jzhw1zpau2km****\n",
"Options": {
"Ipv6Support": "",
"ApplianceModeSupport": ""
}
}
]
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | IllegalParam.NextToken | The specified NextToken is invalid. | |
| 400 | IllegalParam.TrInstance | The specified TransitRouter is invalid. | |
| 400 | IllegalParam.Region | The specified Region is invalid. | |
| 400 | IllegalParam.CenId | The specified CenId is invalid. | |
| 400 | IllegalParam.TransitRouterId | The specified TransitRouterId is invalid. | |
| 400 | IllegalParam.CenIdOrRegionId | The specified CenId or RegionId is invalid. | |
| 400 | IllegalParam.MaxResults | The specified MaxResults is illegal. | |
| 400 | InvalidParameter | Invalid parameter. | |
| 400 | Unauthorized | The AccessKeyId is unauthorized. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。