All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::VPC::RouteTable

更新時間:Feb 05, 2025

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

Syntax

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

Properties

Property

Type

Required

Editable

Description

Constraint

RouteTableId

String

Yes

Yes

The ID of the route table.

None.

RefreshOptions

String

No

Yes

The refresh policy for data source resources when the stack is updated.

Valid values:

  • Never (default): does not refresh data source resources when the stack is updated.

  • Always: refreshes data source resources when the stack is updated.

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

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