All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::VPC::BgpNetwork

Last Updated:Mar 28, 2026

ALIYUN::VPC::BgpNetwork is used to advertise a Border Gateway Protocol (BGP) network.

Syntax

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

Properties

Parameter

Type

Required

Update allowed

Description

Constraints

DstCidrBlock

String

Yes

No

The CIDR block of the VPC or vSwitch to be advertised to a data center.

None

RouterId

String

Yes

No

The ID of the vRouter associated with the router interface.

None

VpcId

String

No

No

The VPC ID.

None

Response parameters

Fn::GetAtt

  • DstCidrBlock: The CIDR block of the VPC or vSwitch to be advertised to a data center.

  • RouterId: The ID of the vRouter associated with the router interface.

Examples

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