Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::CEN::ChildInstanceRouteEntryToAttachment

Última atualização: Jun 27, 2026

Adiciona uma rota a uma instância de rede conectada a um transit router da Enterprise Edition.

Sintaxe

{
  "Type": "ALIYUN::CEN::ChildInstanceRouteEntryToAttachment",
  "Properties": {
    "TransitRouterAttachmentId": String,
    "RouteTableId": String,
    "CenId": String,
    "DestinationCidrBlock": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

CenId

String

Sim

Não

ID da instância do Cloud Enterprise Network (CEN).

Nenhuma

DestinationCidrBlock

String

Sim

Não

Bloco CIDR de destino da rota.

Nenhuma

RouteTableId

String

Sim

Não

ID da tabela de rotas da instância de rede.

Nenhuma

TransitRouterAttachmentId

String

Sim

Não

ID da conexão da instância de rede.

Nenhuma

Valores de retorno

Fn::GetAtt

  • TransitRouterAttachmentId: ID da conexão da instância de rede.

  • RouteTableId: ID da tabela de rotas da instância de rede.

  • CenId: ID da instância do CEN.

  • DestinationCidrBlock: bloco CIDR de destino da rota.

Exemplos

Formato YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  TransitRouterAttachmentId:
    Type: String
    Description: The ID of the network instance connection.
  RouteTableId:
    Type: String
    Description: The ID of the route table configured on the network instance.
  CenId:
    Type: String
    Description: The ID of the CEN instance.
  DestinationCidrBlock:
    Type: String
    Description: The destination CIDR block of the route.
Resources:
  ChildInstanceRouteEntryToAttachment:
    Type: ALIYUN::CEN::ChildInstanceRouteEntryToAttachment
    Properties:
      TransitRouterAttachmentId:
        Ref: TransitRouterAttachmentId
      RouteTableId:
        Ref: RouteTableId
      CenId:
        Ref: CenId
      DestinationCidrBlock:
        Ref: DestinationCidrBlock
Outputs:
  TransitRouterAttachmentId:
    Description: The ID of the network instance connection.
    Value:
      Fn::GetAtt:
        - ChildInstanceRouteEntryToAttachment
        - TransitRouterAttachmentId
  RouteTableId:
    Description: The ID of the route table configured on the network instance.
    Value:
      Fn::GetAtt:
        - ChildInstanceRouteEntryToAttachment
        - RouteTableId
  CenId:
    Description: The ID of the CEN instance.
    Value:
      Fn::GetAtt:
        - ChildInstanceRouteEntryToAttachment
        - CenId
  DestinationCidrBlock:
    Description: The destination CIDR block of the route.
    Value:
      Fn::GetAtt:
        - ChildInstanceRouteEntryToAttachment
        - DestinationCidrBlock

Formato JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "TransitRouterAttachmentId": {
      "Type": "String",
      "Description": "The ID of the network instance connection."
    },
    "RouteTableId": {
      "Type": "String",
      "Description": "The ID of the route table configured on the network instance."
    },
    "CenId": {
      "Type": "String",
      "Description": "The ID of the CEN instance."
    },
    "DestinationCidrBlock": {
      "Type": "String",
      "Description": "The destination CIDR block of the route."
    }
  },
  "Resources": {
    "ChildInstanceRouteEntryToAttachment": {
      "Type": "ALIYUN::CEN::ChildInstanceRouteEntryToAttachment",
      "Properties": {
        "TransitRouterAttachmentId": {
          "Ref": "TransitRouterAttachmentId"
        },
        "RouteTableId": {
          "Ref": "RouteTableId"
        },
        "CenId": {
          "Ref": "CenId"
        },
        "DestinationCidrBlock": {
          "Ref": "DestinationCidrBlock"
        }
      }
    }
  },
  "Outputs": {
    "TransitRouterAttachmentId": {
      "Description": "The ID of the network instance connection.",
      "Value": {
        "Fn::GetAtt": [
          "ChildInstanceRouteEntryToAttachment",
          "TransitRouterAttachmentId"
        ]
      }
    },
    "RouteTableId": {
      "Description": "The ID of the route table configured on the network instance.",
      "Value": {
        "Fn::GetAtt": [
          "ChildInstanceRouteEntryToAttachment",
          "RouteTableId"
        ]
      }
    },
    "CenId": {
      "Description": "The ID of the CEN instance.",
      "Value": {
        "Fn::GetAtt": [
          "ChildInstanceRouteEntryToAttachment",
          "CenId"
        ]
      }
    },
    "DestinationCidrBlock": {
      "Description": "The destination CIDR block of the route.",
      "Value": {
        "Fn::GetAtt": [
          "ChildInstanceRouteEntryToAttachment",
          "DestinationCidrBlock"
        ]
      }
    }
  }
}