ALIYUN::VPC::BgpNetwork digunakan untuk mengiklankan jaringan Border Gateway Protocol (BGP).
Sintaksis
{
"Type": "ALIYUN::VPC::BgpNetwork",
"Properties": {
"DstCidrBlock": String,
"RouterId": String
}
}Properti
| Properti | Tipe | Diperlukan | Dapat Diedit | Deskripsi | Kendala |
| DstCidrBlock | String | Ya | Tidak | Blok CIDR dari virtual private cloud (VPC) atau vSwitch yang ingin Anda sambungkan ke pusat data Anda. | Tidak ada |
| RouterId | String | Ya | Tidak | ID 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