すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:データソース::VPC::ルートテーブル

最終更新日:Jan 16, 2025

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

いいえ

はい

ルートテーブルが属するルーターのタイプです。

有効な値:

  • VRouter

  • VBR

RouterId

String

いいえ

はい

ルートテーブルが属するルーターの ID です。

なし。

RouteTableName

String

いいえ

はい

ルートテーブルの名前です。

なし。

RefreshOptions

String

いいえ

はい

スタックが更新されたときのデータソースリソースの更新ポリシーです。

有効な値:

  • Never ( デフォルト ): スタックが更新されたときにデータソースリソースを更新しません。

  • Always: スタックが更新されたときにデータソースリソースを更新します。

戻り値 ( Fn::GetAtt )

  • RouteTableIds: ルートテーブルの ID です。

  • RouteTables: ルートテーブルの詳細です。

プロパティ

タイプ

説明

制約

RouteTableIds

List

ルートテーブルの ID のリストです。

例: ['vtb-bp145q7glnuzdvzu2****', 'vtb-hdk275q7glnuzdvzu2****']

RouteTables

List

ルートテーブルの詳細のリストです。

なし。

CreationTime

String

ルートテーブルが作成された時刻です。

なし。

RouterType

String

ルートテーブルが属するルーターのタイプです。

有効な値:

  • VRouter

  • VBR

Description

String

ルートテーブルの説明です。

なし。

VSwitchIds

List

VPC にデプロイされている vSwitch の ID です。

例: ["vsw-2zes0bvbgwub7gbg1****"]

RouterId

String

ルートテーブルが属するルーターの ID です。

なし。

RouteTableId

String

ルートテーブルの ID です。

なし。

RouteTableName

String

ルートテーブルの名前です。

なし。

VpcId

String

ルートテーブルが属する VPC の ID です。

なし。

RouteTableType

String

ルートテーブルのタイプです。

有効な値:

  • System: システムルートテーブル

  • Custom: カスタムルートテーブル

Status

String

ルートテーブルのステータスです。

有効な値:

  • Pending: ルートテーブルは構成中です。

  • Available: ルートテーブルは利用可能です。

AssociateType

String

ルートテーブルが関連付けられているクラウド リソースのタイプです。

有効な値:

  • VSwitch: vSwitch ルートテーブル

  • Gateway: ゲートウェイルートテーブル

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"
        ]
      }
    }
  }
}