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": {
}
}