DATASOURCE::VPC::RouteTables は、ルートテーブルを照会するために使用されます。
構文
{
"Type": "DATASOURCE::VPC::RouteTables",
"Properties": {
"RouteTableId": String,
"VpcId": String,
"ResourceGroupId": String,
"RouterType": String,
"RouterId": String,
"RouteTableName": String,
"RefreshOptions": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
RouteTableId | String | いいえ | はい | ルートテーブルの ID です。 | なし。 |
VpcId | String | いいえ | はい | ルートテーブルが属する仮想プライベートクラウド ( VPC ) のリージョン ID です。 | このプロパティを指定すると、RouterType の値は自動的に VRouter に設定されます。 |
ResourceGroupId | String | いいえ | はい | ルートテーブルが属するリソースグループの ID です。 | なし。 |
RouterType | String | いいえ | はい | ルートテーブルが属するルーターのタイプです。 | 有効な値:
|
RouterId | String | いいえ | はい | ルートテーブルが属するルーターの ID です。 | なし。 |
RouteTableName | String | いいえ | はい | ルートテーブルの名前です。 | なし。 |
RefreshOptions | String | いいえ | はい | スタックが更新されたときのデータソースリソースの更新ポリシーです。 | 有効な値:
|
戻り値 ( Fn::GetAtt )
RouteTableIds: ルートテーブルの ID です。
RouteTables: ルートテーブルの詳細です。
プロパティ | タイプ | 説明 | 制約 |
RouteTableIds | List | ルートテーブルの ID のリストです。 | 例: |
RouteTables | List | ルートテーブルの詳細のリストです。 | なし。 |
CreationTime | String | ルートテーブルが作成された時刻です。 | なし。 |
RouterType | String | ルートテーブルが属するルーターのタイプです。 | 有効な値:
|
Description | String | ルートテーブルの説明です。 | なし。 |
VSwitchIds | List | VPC にデプロイされている vSwitch の ID です。 | 例: |
RouterId | String | ルートテーブルが属するルーターの ID です。 | なし。 |
RouteTableId | String | ルートテーブルの ID です。 | なし。 |
RouteTableName | String | ルートテーブルの名前です。 | なし。 |
VpcId | String | ルートテーブルが属する VPC の ID です。 | なし。 |
RouteTableType | String | ルートテーブルのタイプです。 | 有効な値:
|
Status | String | ルートテーブルのステータスです。 | 有効な値:
|
AssociateType | String | ルートテーブルが関連付けられているクラウド リソースのタイプです。 | 有効な値:
|
OwnerId | String | ルートテーブルが属する Alibaba Cloud アカウントの ID です。 | なし。 |
例
JSON 形式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RouteTableName": {
"Type": "String",
"Default": "test123",
"Description": "ルートテーブルの名前です。" // The name of the route table.
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::VPC::RouteTables",
"Properties": {
"RouteTableName": {
"Ref": "RouteTableName"
}
}
}
},
"Outputs": {
"RouteTableIds": {
"Description": "ルートテーブル ID のリストです。", // the list of the route table ids.
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"RouteTableIds"
]
}
},
"RouteTables": {
"Description": "ルートテーブルのリストです。", // The list of The route tables.
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"RouteTables"
]
}
}
}
}