Ajoute une ou plusieurs adresses IP élastiques (EIP) à une instance de bande passante partagée.
Lors de l'ajout d'EIP, tenez compte des limites suivantes :
Seules les EIP en mode paiement à l'utilisation sont prises en charge.
Les EIP et l'instance de bande passante partagée doivent se trouver dans la même région.
Syntaxe
{
"Type": "ALIYUN::VPC::CommonBandwidthPackageIp",
"Properties": {
"Eips": List,
"BandwidthPackageId": String
}
}
Propriétés
|
Paramètre |
Type |
Obligatoire |
Mise à jour autorisée |
Description |
Contraintes |
|
Eips |
List |
Oui |
Non |
Les EIP à ajouter à l'instance de bande passante partagée. |
Aucune. |
|
BandwidthPackageId |
String |
Oui |
Non |
L'ID de l'instance de bande passante partagée. |
Aucune. |
Syntaxe d'Eips
"Eips": [
{
"Bandwidth": Integer,
"AllocationId": String,
"IpType": String
}
]
Propriétés d'Eips
|
Paramètre |
Type |
Obligatoire |
Mise à jour autorisée |
Description |
Contraintes |
|
Bandwidth |
Integer |
Non |
Non |
La bande passante maximale de l'EIP. Unité : Mbit/s. |
Une valeur de 0 indique une bande passante illimitée. Valeur par défaut : 0. |
|
AllocationId |
String |
Oui |
Non |
L'ID de l'instance EIP. |
Aucune. |
|
IpType |
String |
Non |
Non |
Le type de réseau. |
Valeurs valides :
|
Valeurs de retour
Fn::GetAtt
AllocationIds : Les ID des EIP.
IpAddresses : Les adresses IP des EIP.
Exemples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
BandwidthPackageId:
Type: String
Description: The ID of the shared bandwidth instance.
Resources:
CommonBandwidthPackageIp:
Type: ALIYUN::VPC::CommonBandwidthPackageIp
Properties:
Eips:
- Bandwidth: 5
AllocationId: eip-8vbwv47kgXXXXXXXXX
BandwidthPackageId:
Ref: BandwidthPackageId
Outputs:
AllocationIds:
Description: The allocation IDs of the EIPs in the shared bandwidth package.
Value:
Fn::GetAtt:
- CommonBandwidthPackageIp
- AllocationIds
IpAddresses:
Description: The IP addresses of the EIPs in the shared bandwidth package.
Value:
Fn::GetAtt:
- CommonBandwidthPackageIp
- IpAddresses{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"BandwidthPackageId": {
"Type": "String",
"Description": "The ID of the shared bandwidth instance."
}
},
"Resources": {
"CommonBandwidthPackageIp": {
"Type": "ALIYUN::VPC::CommonBandwidthPackageIp",
"Properties": {
"Eips": [
{
"Bandwidth": 5,
"AllocationId": "eip-8vbwv47kgXXXXXXXXX"
}
],
"BandwidthPackageId": {
"Ref": "BandwidthPackageId"
}
}
}
},
"Outputs": {
"AllocationIds": {
"Description": "The allocation IDs of the EIPs in the shared bandwidth package.",
"Value": {
"Fn::GetAtt": [
"CommonBandwidthPackageIp",
"AllocationIds"
]
}
},
"IpAddresses": {
"Description": "The IP addresses of the EIPs in the shared bandwidth package.",
"Value": {
"Fn::GetAtt": [
"CommonBandwidthPackageIp",
"IpAddresses"
]
}
}
}
}