getPublicIPs

Use this data source to access information about a set of existing Public IP Addresses.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.network.NetworkFunctions;
import com.pulumi.azure.network.inputs.GetPublicIPsArgs;
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 = NetworkFunctions.getPublicIPs(GetPublicIPsArgs.builder()
.attachmentStatus("Attached")
.resourceGroupName("pip-test")
.build());
}
}

Return

A collection of values returned by getPublicIPs.

Parameters

argument

A collection of arguments for invoking getPublicIPs.


suspend fun getPublicIPs(allocationType: String? = null, attachmentStatus: String? = null, namePrefix: String? = null, resourceGroupName: String): GetPublicIPsResult

Return

A collection of values returned by getPublicIPs.

See also

Parameters

allocationType

The Allocation Type for the Public IP Address. Possible values include Static or Dynamic.

attachmentStatus

Filter to include IP Addresses which are attached to a device, such as a VM/LB (Attached) or unattached (Unattached).

namePrefix

A prefix match used for the IP Addresses name field, case sensitive.

resourceGroupName

Specifies the name of the resource group.


Return

A collection of values returned by getPublicIPs.

See also

Parameters

argument

Builder for com.pulumi.azure.network.kotlin.inputs.GetPublicIPsPlainArgs.