全部产品
Search
文档中心

Resource Orchestration Service:ALIYUN::VPC::BgpNetwork

更新时间:Jun 26, 2025

ALIYUN::VPC::BgpNetwork digunakan untuk mengiklankan jaringan Border Gateway Protocol (BGP).

Sintaksis

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

Properti

PropertiTipeDiperlukanDapat DieditDeskripsiKendala
DstCidrBlockStringYaTidakBlok CIDR dari virtual private cloud (VPC) atau vSwitch yang ingin Anda sambungkan ke pusat data Anda. Tidak ada
RouterIdStringYaTidakID router yang terkait dengan antarmuka router. Tidak ada

Parameter respons

Fn::GetAtt

  • DstCidrBlock: Blok CIDR dari VPC atau vSwitch yang ingin disambungkan ke pusat data Anda.
  • RouterId: ID router yang terkait dengan antarmuka router.

Contoh

JSON Format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DstCidrBlock": {
      "Type": "String",
      "Description": "The CIDR block of the virtual private cloud (VPC) or vSwitch that you want to connect\nto 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 virtual private cloud (VPC) or vSwitch that you want to connect\nto 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"
        ]
      }
    }
  }
}

YAML Format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DstCidrBlock:
    Description: 'The CIDR block of the virtual private cloud (VPC) or vSwitch that
      you want to connect

      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 virtual private cloud (VPC) or vSwitch that
      you want to connect

      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