getEips

suspend fun getEips(argument: GetEipsPlainArgs): GetEipsResult

Deprecated

This function has been deprecated in favour of the getEipAddresses function

DEPRECATED: This datasource has been deprecated from version 1.126.0. Please use new datasource alicloud_eip_addresses. This data source provides a list of EIPs (Elastic IP address) owned by an Alibaba Cloud account.

Example 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.GetEipsArgs;
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 eipsDs = EcsFunctions.getEips();
ctx.export("firstEipId", eipsDs.applyValue(getEipsResult -> getEipsResult.eips()[0].id()));
}
}

Return

A collection of values returned by getEips.

Parameters

argument

A collection of arguments for invoking getEips.


suspend fun getEips(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): GetEipsResult

Deprecated

This function has been deprecated in favour of the getEipAddresses function

Return

A collection of values returned by getEips.

See also

Parameters

addressName
associatedInstanceId
associatedInstanceType
dryRun
enableDetails
ids

A list of EIP IDs.

includeReservationData
ipAddress

Public IP Address of the the EIP.

ipAddresses

A list of EIP public IP addresses.

isp
lockReason
nameRegex
outputFile

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

paymentType
resourceGroupId

The Id of resource group which the eips belongs.

segmentInstanceId
status

EIP status. Possible values are: Associating, Unassociating, InUse and Available.

tags

A mapping of tags to assign to the resource.


suspend fun getEips(argument: suspend GetEipsPlainArgsBuilder.() -> Unit): GetEipsResult

Deprecated

This function has been deprecated in favour of the getEipAddresses function

Return

A collection of values returned by getEips.

See also

Parameters

argument

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