get Public IPs
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()
.resourceGroupName("pip-test")
.attachmentStatus("Attached")
.build());
}
}Content copied to clipboard
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
allocation Type
The Allocation Type for the Public IP Address. Possible values include Static or Dynamic.
attachment Status
Filter to include IP Addresses which are attached to a device, such as a VM/LB (Attached) or unattached (Unattached).
name Prefix
A prefix match used for the IP Addresses name field, case sensitive.
resource Group Name
Specifies the name of the resource group.
suspend fun getPublicIPs(argument: suspend GetPublicIPsPlainArgsBuilder.() -> Unit): GetPublicIPsResult
Return
A collection of values returned by getPublicIPs.
See also
Parameters
argument
Builder for com.pulumi.azure.network.kotlin.inputs.GetPublicIPsPlainArgs.