Creates an Elastic IP Address (EIP).
Syntax
{
"Type": "ALIYUN::VPC::EIPPro",
"Properties": {
"Description": String,
"ResourceGroupId": String,
"InstanceId": String,
"InstanceChargeType": String,
"PricingCycle": String,
"ISP": String,
"Period": Number,
"DeletionProtection": Boolean,
"AutoPay": Boolean,
"Name": String,
"InternetChargeType": String,
"Netmode": String,
"Bandwidth": Number,
"IpAddress": String,
"Tags": List,
"SecurityProtectionTypes": List,
"PublicIpAddressPoolId": String
}
}
Properties
|
Property name |
Type |
Required |
Update allowed |
Description |
Constraints |
|
Description |
String |
No |
Yes |
The description of the EIP. |
The description must start with a letter and cannot start with |
|
ResourceGroupId |
String |
No |
Yes |
The ID of the resource group to which the EIP belongs. |
None |
|
InstanceId |
String |
No |
No |
The instance ID of the EIP. |
Specify either the IpAddress or InstanceId parameter. If you specify neither, the system randomly allocates an EIP. |
|
InstanceChargeType |
String |
No |
No |
The billing method of the EIP. |
Valid values:
|
|
PricingCycle |
String |
No |
No |
The billing cycle of the subscription EIP. |
This parameter is required when you set InstanceChargeType to Prepaid. Valid values:
|
|
ISP |
String |
No |
No |
The line type. |
Valid values:
Note
If you are on the single-line bandwidth whitelist, you can set ISP to ChinaTelecom, ChinaUnicom, or ChinaMobile. |
|
Period |
Number |
No |
No |
The subscription duration. |
This parameter is required when you set InstanceChargeType to PrePaid. Valid values:
|
|
DeletionProtection |
Boolean |
No |
Yes |
Whether to enable deletion protection. |
Valid values:
|
|
AutoPay |
Boolean |
No |
No |
Whether to enable automatic payment. |
This parameter is required when you set InstanceChargeType to Prepaid. Valid values:
|
|
Name |
String |
No |
Yes |
The name of the EIP. |
The name must be 2 to 128 characters in length. It must start with a letter and cannot start with |
|
InternetChargeType |
String |
No |
No |
The metering method of the EIP. |
Valid values:
|
|
Netmode |
String |
No |
No |
The network type. |
Valid value: public. This value indicates the public network. |
|
Bandwidth |
Number |
No |
Yes |
The bandwidth of the EIP. |
If you do not specify this parameter, the default value of 5 Mbps is used. |
|
IpAddress |
String |
No |
No |
The IP address of the EIP. |
Specify either the IpAddress or InstanceId parameter. If you specify neither, the system randomly allocates an EIP. |
|
Tags |
List |
No |
Yes |
The tags. |
You can add up to 20 tags. For more information, see the Tags property section. |
|
SecurityProtectionTypes |
List |
No |
No |
The security protection level. |
Valid values:
Note
You can specify up to 10 security protection levels. |
|
PublicIpAddressPoolId |
String |
No |
No |
The ID of the IP address pool. |
The EIP is allocated from this IP address pool. The IP address pool is visible only to users who are granted trial access. To use this feature, submit a ticket. |
Tags syntax
"Tags": [
{
"Value": String,
"Key": String
}
]
Tags property
|
Property name |
Type |
Required |
Update allowed |
Description |
Constraints |
|
Value |
String |
No |
No |
The value of the tag. |
The value can be 0 to 128 characters in length. It cannot start with |
|
Key |
String |
Yes |
No |
The key of the tag. |
The key must be 1 to 128 characters in length. It cannot start with |
Return value
Fn::GetAtt
-
ISP: The line type.
-
AllocationId: The instance ID of the EIP.
-
EipAddress: The IP address of the EIP.
-
OrderId: The order ID of the subscription EIP instance.