全部产品
Search
文档中心

Resource Orchestration Service:ALIYUN::VPC::BgpPeer

更新时间:Jun 26, 2025

ALIYUN::VPC::BgpPeer digunakan untuk menambahkan peer Border Gateway Protocol (BGP) ke grup BGP tertentu.

Sintaksis

{
  "Type": "ALIYUN::VPC::BgpPeer",
  "Properties": {
    "PeerIpAddress": String,
    "EnableBfd": Boolean,
    "BgpGroupId": String
  }
}

Properti

PropertiTipeDiperlukanDapat DieditDeskripsiKendala
PeerIpAddressStringTidakYaAlamat IP dari peer BGP. Tidak ada
EnableBfdBooleanTidakYaMenentukan apakah akan mengaktifkan fitur Bidirectional Forwarding Detection (BFD). Nilai yang valid:
  • true: BFD diaktifkan.
  • false: BFD dinonaktifkan.
BgpGroupIdStringYaTidakID dari grup BGP. Tidak ada

Parameter respons

Fn::GetAtt

BgpPeerId: ID dari peer BGP.

Contoh

  • YAML Format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      BgpGroupId:
        Type: String
        Description: ID dari grup BGP.
    Resources:
      BgpPeer:
        Type: ALIYUN::VPC::BgpPeer
        Properties:
          PeerIpAddress: 192.168.1.1
          EnableBfd: false
          BgpGroupId:
            Ref: BgpGroupId
    Outputs:
      BgpPeerId:
        Description: ID dari peer BGP.
        Value:
          Fn::GetAtt:
            - BgpPeer
            - BgpPeerId
  • JSON Format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "BgpGroupId": {
          "Type": "String",
          "Description": "ID dari grup BGP."
        }
      },
      "Resources": {
        "BgpPeer": {
          "Type": "ALIYUN::VPC::BgpPeer",
          "Properties": {
            "PeerIpAddress": "192.168.1.1",
            "EnableBfd": false,
            "BgpGroupId": {
              "Ref": "BgpGroupId"
            }
          }
        }
      },
      "Outputs": {
        "BgpPeerId": {
          "Description": "ID dari peer BGP.",
          "Value": {
            "Fn::GetAtt": [
              "BgpPeer",
              "BgpPeerId"
            ]
          }
        }
      }
    }