All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::VPC::RouteTable

Last Updated:Oct 29, 2024

DATASOURCE::VPC::RouteTable is used to query the information about a route table.

Syntax

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

Properties

Property

Type

Required

Editable

Description

Constraint

RouteTableId

String

Yes

Yes

The ID of the route table.

None.

Return values

Fn::GetAtt

  • RouteTableId: the ID of the route table.

  • Description: the description of the route table.

  • VpcId: the ID of the virtual private cloud (VPC).

  • ResourceGroupId: the ID of the resource group.

  • VSwitchIds: the vSwitches.

  • RouterType: the type of the router to which the route table belongs.

  • CreateTime: the time when the route table was created.

  • RouterId: the ID of the router to which the route table belongs.

  • Tags: the tags that are added to the route table.

  • RouteTableName: the name of the route table.

  • RouteTableType: the type of the route table.

Examples

  • YAML format

    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 format

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