ALIYUN::VPC::HaVip digunakan untuk mengajukan alamat IP virtual dengan ketersediaan tinggi (HAVIP).
Setiap Virtual Private Cloud (VPC) dapat memiliki hingga lima HAVIP.
Sintaksis
{
"Type": "ALIYUN::VPC::HaVip",
"Properties": {
"VSwitchId": String,
"IpAddress": String,
"Description": String,
"Tags": List,
"Name": String,
"ResourceGroupId": String
}
}Properti
Properti | Tipe | Diperlukan | Dapat Diedit | Deskripsi | Batasan |
VSwitchId | String | Ya | Tidak | ID dari vSwitch. | Tidak ada. |
IpAddress | String | Tidak | Tidak | Alamat IP dari HAVIP. Jika Anda membiarkan properti ini kosong, sistem akan menetapkan alamat IP secara acak dari vSwitch yang ditentukan. | Tidak ada. |
Description | String | Tidak | Ya | Deskripsi. | Deskripsi dapat mencapai 256 karakter dan tidak boleh dimulai dengan |
Name | String | Tidak | Ya | Nama dari HAVIP. | Nama harus memiliki panjang 1 hingga 128 karakter dan tidak boleh dimulai dengan |
ResourceGroupId | String | Tidak | Ya | ID dari grup sumber daya tempat HAVIP berada. | Tidak ada. |
Tags | List | Tidak | Ya | Tag kustom. | Untuk informasi lebih lanjut, lihat bagian "Properti Tags" dari topik ini. |
Sintaksis Tags
"Tags": [
{
"Key": String,
"Value": String
}
]Properti Tags
Properti | Tipe | Diperlukan | Dapat Diedit | Deskripsi | Batasan |
Key | String | Ya | Tidak | Kunci dari tag. | Kunci harus memiliki panjang 1 hingga 128 karakter dan tidak boleh mengandung |
Value | String | Tidak | Tidak | Nilai dari tag. | Nilai dapat mencapai 128 karakter dan tidak boleh mengandung |
Nilai Pengembalian
Fn::GetAtt
HaVipId: ID dari HAVIP.
IpAddress: Alamat IP dari HAVIP.
Arn: Nama Sumber Daya Alibaba Cloud (ARN).
Contoh
YAML format
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ZoneId:
Type: String
Description: Buat Availability Zone untuk instance untuk memastikan bahwa Availability Zone mendukung pembuatan spesifikasi sumber daya Memcache.
AssociationProperty: ALIYUN::ECS::Instance::ZoneId
Label: ID Zone
VSwitch:
AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
Type: String
Description: Silakan cari ID VSwitch bisnis yang dimulai dengan(vsw-xxx)dari konsol-Virtual Private Cloud-VSwitches
Label: ID VSwitch yang Ada
AssociationPropertyMetadata:
ZoneId: ZoneId
Resources:
HaVip:
Type: ALIYUN::VPC::HaVip
Properties:
VSwitchId:
Ref: VSwitch
Outputs:
HaVipId:
Value:
Fn::GetAtt:
- HaVip
- HaVipIdJSON format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ZoneId": {
"Type": "String",
"Description": "Buat Availability Zone untuk instance untuk memastikan bahwa Availability Zone mendukung pembuatan spesifikasi sumber daya Memcache.",
"AssociationProperty": "ALIYUN::ECS::Instance::ZoneId",
"Label": "ID Zone"
},
"VSwitch": {
"AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
"Type": "String",
"Description": "Silakan cari ID VSwitch bisnis yang dimulai dengan(vsw-xxx)dari konsol-Virtual Private Cloud-VSwitches",
"Label": "ID VSwitch yang Ada",
"AssociationPropertyMetadata": {
"ZoneId": "ZoneId"
}
}
},
"Resources": {
"HaVip": {
"Type": "ALIYUN::VPC::HaVip",
"Properties": {
"VSwitchId": {
"Ref": "VSwitch"
}
}
}
},
"Outputs": {
"HaVipId": {
"Value": {
"Fn::GetAtt": [
"HaVip",
"HaVipId"
]
}
}
}
}