DATASOURCE::VPC::RouteTable

DATASOURCE::VPC::RouteTable类型用于查询单个路由表详情。

语法

{
  "Type": "DATASOURCE::VPC::RouteTable",
  "Properties": {
    "RouteTableId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

RouteTableId

String

路由表的 ID。

返回值

Fn::GetAtt

  • RouteTableId:路由表的 ID。

  • Description:路由表的描述信息。

  • VpcId:专有网络ID。

  • ResourceGroupId:资源组ID。

  • VSwitchIds:虚拟交换机列表。

  • RouterType:路由表所属的路由器的类型

  • CreateTime:路由表的创建时间

  • RouterId:路由表所属路由器的 ID。

  • Tags:路由表绑定的标签

  • RouteTableName:要查询的路由表的名称。

  • RouteTableType:路由表的类型。

示例

YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RouteTableId:
    Type: String
    Description:
      en: The ID of the routing table.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::VPC::RouteTable
    Properties:
      RouteTableId:
        Ref: RouteTableId
Outputs:
  RouteTableId:
    Description: The ID of the routing table.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - RouteTableId
  Description:
    Description: Description of the routing table.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Description
  VpcId:
    Description: The ID of VPC.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - VpcId
  ResourceGroupId:
    Description: Resource group ID.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ResourceGroupId
  VSwitchIds:
    Description: The ID of the switch.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - VSwitchIds
  RouterType:
    Description: The router type to which the routing table belongs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - RouterType
  CreateTime:
    Description: The creation time of the routing table.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CreateTime
  RouterId:
    Description: The router ID to which the routing table belongs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - RouterId
  Tags:
    Description: The tag.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Tags
  RouteTableName:
    Description: The name of the routing table.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - RouteTableName
  RouteTableType:
    Description: The type of routing table.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - RouteTableType

JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RouteTableId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the routing table."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::VPC::RouteTable",
      "Properties": {
        "RouteTableId": {
          "Ref": "RouteTableId"
        }
      }
    }
  },
  "Outputs": {
    "RouteTableId": {
      "Description": "The ID of the routing table.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "RouteTableId"
        ]
      }
    },
    "Description": {
      "Description": "Description of the routing table.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Description"
        ]
      }
    },
    "VpcId": {
      "Description": "The ID of VPC.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "VpcId"
        ]
      }
    },
    "ResourceGroupId": {
      "Description": "Resource group ID.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceGroupId"
        ]
      }
    },
    "VSwitchIds": {
      "Description": "The ID of the switch.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "VSwitchIds"
        ]
      }
    },
    "RouterType": {
      "Description": "The router type to which the routing table belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "RouterType"
        ]
      }
    },
    "CreateTime": {
      "Description": "The creation time of the routing table.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "RouterId": {
      "Description": "The router ID to which the routing table belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "RouterId"
        ]
      }
    },
    "Tags": {
      "Description": "The tag.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Tags"
        ]
      }
    },
    "RouteTableName": {
      "Description": "The name of the routing table.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "RouteTableName"
        ]
      }
    },
    "RouteTableType": {
      "Description": "The type of routing table.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "RouteTableType"
        ]
      }
    }
  }
}