ALIYUN::VPC::VirtualBorderRouter類型用於建立邊界路由器(VBR)。
文法
{
"Type": "ALIYUN::VPC::VirtualBorderRouter",
"Properties": {
"PeerGatewayIp": String,
"LocalGatewayIp": String,
"Description": String,
"CircuitCode": String,
"PhysicalConnectionId": String,
"PeeringSubnetMask": String,
"VlanId": Integer,
"Name": String,
"ResourceGroupId": String,
"Bandwidth": Integer
}
}屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
PeerGatewayIp | String | 是 | 是 | VBR的客戶側互聯IP。 | 該屬性只允許VBR所有者指定或者修改。為物理專線所有者建立VBR執行個體時必填,為其他帳號建立VBR執行個體時無需填寫。 |
LocalGatewayIp | String | 是 | 是 | VBR的阿里雲側互聯IP。 | 無 |
Description | String | 否 | 是 | VBR的描述資訊。 | 長度為2~256個字元,必須以英文字母或漢字開頭,不能以 |
CircuitCode | String | 否 | 是 | 電訊廠商為物理專線提供的電路編碼。 | 只有物理專線的所有者可以指定該參數。 |
PhysicalConnectionId | String | 是 | 否 | 物理專線執行個體ID。 | 無 |
PeeringSubnetMask | String | 是 | 是 | VBR的阿里雲側和客戶側互聯IP的子網路遮罩。 | 兩個IP地址必須位於同一個子網中。 |
VlanId | Integer | 是 | 否 | VBR的VLAN ID。 | 取值範圍:1~2999。 說明 只有物理專線的所有者可以指定該參數,同一條物理專線下的兩個VBR的VLAN ID不能相同。 |
Name | String | 否 | 是 | VBR的名稱。 | 長度為 2~128個字元,必須以英文字母或漢字開頭,不能以 |
ResourceGroupId | String | 否 | 否 | 資源群組ID。 | 無 |
Bandwidth | String | 否 | 否 | VBR 執行個體的頻寬值。 | 單位:Mbps。
|
傳回值
Fn::GetAtt
VbrId:VBR執行個體ID。
Name:VBR的名稱。
RouteTableId:VBR路由表ID。
VlanInterfaceId:VBR介面ID。
樣本
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
PhysicalConnectionId:
Type: String
Default: pc-uf68cptix9pqv9ufXXXXXX
Resources:
VirtualBorderRouter:
Type: ALIYUN::VPC::VirtualBorderRouter
Properties:
VlanId: 200
PhysicalConnectionId:
Ref: PhysicalConnectionId
PeerGatewayIp: 10.0.0.2
Name: TestVBR
PeeringSubnetMask: 255.255.255.252
LocalGatewayIp: 10.0.0.1
Outputs: {}{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"PhysicalConnectionId": {
"Type": "String",
"Default": "pc-uf68cptix9pqv9ufXXXXXX"
}
},
"Resources": {
"VirtualBorderRouter": {
"Type": "ALIYUN::VPC::VirtualBorderRouter",
"Properties": {
"VlanId": 200,
"PhysicalConnectionId": {
"Ref": "PhysicalConnectionId"
},
"PeerGatewayIp": "10.0.0.2",
"Name": "TestVBR",
"PeeringSubnetMask": "255.255.255.252",
"LocalGatewayIp": "10.0.0.1"
}
}
},
"Outputs": {
}
}