Todos os produtos
Search
Central de documentação

Resource Orchestration Service:DATASOURCE::VPC::RouteTable

Última atualização: Jun 27, 2026

Consulta os detalhes de uma tabela de rotas.

Sintaxe

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

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

RouteTableId

String

Sim

Sim

ID da tabela de rotas.

Nenhuma.

RefreshOptions

String

Não

Sim

Política de atualização dos recursos da fonte de dados ao atualizar a pilha.

Valores válidos:

  • Never (padrão): não atualize os recursos da fonte de dados ao atualizar a pilha.

  • Always: atualize os recursos da fonte de dados ao atualizar a pilha.

Valores de retorno

Fn::GetAtt

  • RouteTableId: ID da tabela de rotas.

  • Description: descrição da tabela de rotas.

  • VpcId: ID da VPC.

  • ResourceGroupId: ID do grupo de recursos.

  • VSwitchIds: IDs dos vSwitches.

  • RouterType: tipo de roteador ao qual a tabela de rotas pertence.

  • CreateTime: hora de criação da tabela de rotas.

  • RouterId: ID do roteador ao qual a tabela de rotas pertence.

  • Tags: tags da tabela de rotas.

  • RouteTableName: nome da tabela de rotas.

  • RouteTableType: tipo da tabela de rotas.

Exemplos

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