Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::VPC::BgpNetwork

Última atualização: Jun 27, 2026

O recurso ALIYUN::VPC::BgpNetwork anuncia uma rede Border Gateway Protocol (BGP).

Sintaxe

{
  "Type": "ALIYUN::VPC::BgpNetwork",
  "Properties": {
    "VpcId": String,
    "DstCidrBlock": String,
    "RouterId": String
  }
}

Propriedades

Parâmetro

Tipo

Obrigatório

Atualização permitida

Descrição

Restrições

DstCidrBlock

String

Sim

Não

Bloco CIDR da VPC ou do vSwitch anunciado para um data center.

Nenhuma

RouterId

String

Sim

Não

ID do vRouter associado à interface do roteador.

Nenhuma

VpcId

String

Não

Não

ID da VPC.

Nenhuma

Parâmetros de resposta

Fn::GetAtt

  • DstCidrBlock: bloco CIDR da VPC ou do vSwitch anunciado para um data center.

  • RouterId: ID do vRouter associado à interface do roteador.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DstCidrBlock:
    Description: 'The CIDR block of the VPC or vSwitch to be advertised to a data center.'
    Type: String
  RouterId:
    Description: The ID of the vRouter associated with the router interface.
    Type: String
Resources:
  BgpNetwork:
    Properties:
      DstCidrBlock:
        Ref: DstCidrBlock
      RouterId:
        Ref: RouterId
    Type: ALIYUN::VPC::BgpNetwork
Outputs:
  DstCidrBlock:
    Description: 'The CIDR block of the VPC or vSwitch to be advertised to a data center.'
    Value:
      Fn::GetAtt:
      - BgpNetwork
      - DstCidrBlock
  RouterId:
    Description: The ID of the vRouter associated with the router interface.
    Value:
      Fn::GetAtt:
      - BgpNetwork
      - RouterId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DstCidrBlock": {
      "Type": "String",
      "Description": "The CIDR block of the VPC or vSwitch to be advertised to a data center."
    },
    "RouterId": {
      "Type": "String",
      "Description": "The ID of the vRouter associated with the router interface."
    }
  },
  "Resources": {
    "BgpNetwork": {
      "Type": "ALIYUN::VPC::BgpNetwork",
      "Properties": {
        "DstCidrBlock": {
          "Ref": "DstCidrBlock"
        },
        "RouterId": {
          "Ref": "RouterId"
        }
      }
    }
  },
  "Outputs": {
    "DstCidrBlock": {
      "Description": "The CIDR block of the VPC or vSwitch to be advertised to a data center.",
      "Value": {
        "Fn::GetAtt": [
          "BgpNetwork",
          "DstCidrBlock"
        ]
      }
    },
    "RouterId": {
      "Description": "The ID of the vRouter associated with the router interface.",
      "Value": {
        "Fn::GetAtt": [
          "BgpNetwork",
          "RouterId"
        ]
      }
    }
  }
}