getEipAddresses

This data source provides the Eip Addresses of the current Alibaba Cloud user.

NOTE: Available in v1.126.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ecs.EcsFunctions;
import com.pulumi.alicloud.ecs.inputs.GetEipAddressesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = EcsFunctions.getEipAddresses(GetEipAddressesArgs.builder()
.ids("eip-bp1jvx5ki6c********")
.nameRegex("the_resource_name")
.build());
ctx.export("firstEipAddressId", example.applyValue(getEipAddressesResult -> getEipAddressesResult.addresses()[0].id()));
}
}

Return

A collection of values returned by getEipAddresses.

Parameters

argument

A collection of arguments for invoking getEipAddresses.


suspend fun getEipAddresses(addressName: String? = null, associatedInstanceId: String? = null, associatedInstanceType: String? = null, dryRun: Boolean? = null, enableDetails: Boolean? = null, ids: List<String>? = null, includeReservationData: Boolean? = null, ipAddress: String? = null, ipAddresses: List<String>? = null, isp: String? = null, lockReason: String? = null, nameRegex: String? = null, outputFile: String? = null, paymentType: String? = null, resourceGroupId: String? = null, segmentInstanceId: String? = null, status: String? = null, tags: Map<String, Any>? = null): GetEipAddressesResult

Return

A collection of values returned by getEipAddresses.

See also

Parameters

addressName

The name of the EIP.

associatedInstanceId

The associated instance id.

associatedInstanceType

The associated instance type.

dryRun

The dry run.

enableDetails

Default to true. Set it to false can hide the tags to output.

ids

A list of Address IDs.

includeReservationData

The include reservation data. Valid values: BGP and BGP_PRO.

ipAddress

The IP address of the EIP.

ipAddresses
isp

The Internet service provider (ISP).

lockReason

The lock reason.

nameRegex

A regex string to filter results by Address name.

outputFile

File name where to save data source results (after running pulumi preview).

paymentType

The billing method of the EIP.

resourceGroupId

The ID of the resource group.

segmentInstanceId

The IDs of the contiguous EIPs.

status

The status of the EIP.

tags

A mapping of tags to assign to the resource.


Return

A collection of values returned by getEipAddresses.

See also

Parameters

argument

Builder for com.pulumi.alicloud.ecs.kotlin.inputs.GetEipAddressesPlainArgs.