get Eip Addresses
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
A collection of arguments for invoking getEipAddresses.
Return
A collection of values returned by getEipAddresses.
See also
Parameters
The name of the EIP.
The associated instance id.
The associated instance type.
The dry run.
Default to true
. Set it to false
can hide the tags
to output.
A list of Address IDs.
The include reservation data. Valid values: BGP
and BGP_PRO
.
The IP address of the EIP.
The Internet service provider (ISP).
The lock reason.
A regex string to filter results by Address name.
File name where to save data source results (after running pulumi preview
).
The billing method of the EIP.
The ID of the resource group.
The IDs of the contiguous EIPs.
The status of the EIP.
A mapping of tags to assign to the resource.
Return
A collection of values returned by getEipAddresses.
See also
Parameters
Builder for com.pulumi.alicloud.ecs.kotlin.inputs.GetEipAddressesPlainArgs.