Queries information about elastic IP addresses (EIPs).
Syntax
{
"Type": "DATASOURCE::EIP::Addresses",
"Properties": {
"SegmentInstanceId": String,
"AddressName": String,
"ResourceGroupId": String,
"InstanceId": String,
"Isp": String,
"AllocationId": String,
"PaymentType": String,
"IpAddress": String,
"InstanceType": String,
"RefreshOptions": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
SegmentInstanceId |
String |
No |
Yes |
The contiguous EIP ID. |
None. |
|
AddressName |
String |
No |
Yes |
The EIP name. |
The name must be 1 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter. |
|
ResourceGroupId |
String |
No |
Yes |
The resource group ID. |
None. |
|
InstanceId |
String |
No |
Yes |
The ID of the instance associated with the EIP. |
None. |
|
Isp |
String |
No |
Yes |
The line type. |
Valid values:
|
|
AllocationId |
String |
No |
Yes |
The EIP ID. |
None. |
|
PaymentType |
String |
No |
Yes |
The billing method of the EIP. |
Valid values:
|
|
IpAddress |
String |
No |
Yes |
The EIP IP address. |
None. |
|
InstanceType |
String |
No |
Yes |
The type of the instance associated with the EIP. |
Valid values:
|
|
RefreshOptions |
String |
No |
Yes |
The refresh policy for data source resources when the stack is updated. |
Valid values:
|
Return values
Fn::GetAtt
-
Addresses: details of the EIPs.
-
AllocationIds: the IDs of the EIPs.
|
Property |
Type |
Description |
Constraint |
|
AllocationIds |
List |
The IDs of the EIPs. |
None. |
|
Addresses |
List |
Details of the EIPs. |
None. |
|
BusinessStatus |
String |
The service status of the EIP. |
None. |
|
ExpiredTime |
String |
The expiration time. |
The time follows the ISO 8601 standard in the |
|
IpAddress |
String |
The EIP IP address. |
None. |
|
AllocationId |
String |
The EIP ID. |
None. |
|
ReservationOrderType |
String |
The renewal order type. |
None. |
|
Status |
String |
The EIP status. |
None. |
|
EipBandwidth |
String |
The EIP bandwidth when it is not associated with an Internet Shared Bandwidth instance. |
Unit: Mbit/s. |
|
BandwidthPackageId |
String |
The ID of the Internet Shared Bandwidth instance associated with the EIP. |
None. |
|
Description |
String |
The EIP description. |
None. |
|
Tags |
List |
The EIP tags. |
None. |
|
InstanceId |
String |
The ID of the instance associated with the EIP. |
None. |
|
ReservationBandwidth |
String |
The bandwidth after the renewal takes effect. |
Unit: Mbit/s. |
|
InstanceRegionId |
String |
The region ID of the associated resource. |
None. |
|
RegionId |
String |
The EIP region ID. |
None. |
|
SegmentInstanceId |
String |
The contiguous EIP ID. |
None. |
|
ResourceGroupId |
String |
The resource group ID. |
None. |
|
HasReservationData |
String |
Indicates whether renewal data is included. |
None. |
|
Netmode |
String |
The network type. |
Only public may be returned, which indicates the Internet. |
|
InstanceType |
String |
The type of the instance associated with the EIP. |
None. |
|
OperationLocks |
List |
Details of the locked EIP. |
None. |
|
ReservationInternetChargeType |
String |
The metering method after the renewal takes effect. |
None. |
|
Isp |
String |
The line type. |
None. |
|
DeletionProtection |
Boolean |
Indicates whether deletion protection is enabled. |
Valid values:
|
|
BandwidthPackageType |
String |
The bandwidth type. |
Only CommonBandwidthPackage may be returned, which indicates an Internet Shared Bandwidth instance. |
|
ServiceManaged |
Integer |
Indicates whether the EIP is created by using the service account. |
Valid values:
|
|
CreateTime |
String |
The EIP creation time. |
Unit: milliseconds. |
|
PaymentType |
String |
The billing method of the EIP. |
None. |
|
Bandwidth |
String |
The maximum bandwidth of the EIP. |
Unit: Mbit/s. |
|
HdMonitorStatus |
String |
Indicates whether fine-grained monitoring is enabled for the EIP. |
Valid values:
|
|
ReservationActiveTime |
String |
The time when the renewal takes effect. |
The time follows the ISO 8601 standard in the |
|
SecondLimited |
Boolean |
Indicates whether level-2 throttling is configured. |
Valid values:
|
|
AddressName |
String |
The EIP name. |
None. |
|
BandwidthPackageBandwidth |
String |
The bandwidth of the Internet Shared Bandwidth instance associated with the EIP. |
Unit: Mbit/s. |
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstanceType:
Description: 'The type of the current bound instance.
- EcsInstance: an ECS instance of the VPC type.
- SlbInstance: an SLB instance of the VPC type.
- Nat:NAT gateway.
- HaVip: a highly available virtual IP address.
- NetworkInterface: Secondary ENI.'
Type: String
Resources:
ExtensionDataSource:
Properties:
InstanceType:
Ref: InstanceType
Type: DATASOURCE::EIP::Addresses
Outputs:
Addresses:
Description: The details about the EIP
Value:
Fn::GetAtt:
- ExtensionDataSource
- Addresses
AllocationIds:
Description: The list of allocation IDs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- AllocationIds{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceType": {
"Description": "The type of the current bound instance. - EcsInstance: an ECS instance of the VPC type. - SlbInstance: an SLB instance of the VPC type. - Nat:NAT gateway. - HaVip: a highly available virtual IP address. - NetworkInterface: Secondary ENI.",
"Type": "String"
}
},
"Resources": {
"ExtensionDataSource": {
"Properties": {
"InstanceType": {
"Ref": "InstanceType"
}
},
"Type": "DATASOURCE::EIP::Addresses"
}
},
"Outputs": {
"Addresses": {
"Description": "The details about the EIP",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Addresses"
]
}
},
"AllocationIds": {
"Description": "The list of allocation IDs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"AllocationIds"
]
}
}
}
}