getPublicIpPrefix

Use this data source to access information about an existing Public IP Prefix.

Example Usage

Reference An Existing)

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.GetPublicIpPrefixArgs;
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.getPublicIpPrefix(GetPublicIpPrefixArgs.builder()
.name("name_of_public_ip")
.resourceGroupName("name_of_resource_group")
.build());
ctx.export("publicIpPrefix", example.applyValue(getPublicIpPrefixResult -> getPublicIpPrefixResult.ipPrefix()));
}
}

Return

A collection of values returned by getPublicIpPrefix.

Parameters

argument

A collection of arguments for invoking getPublicIpPrefix.


suspend fun getPublicIpPrefix(name: String, resourceGroupName: String): GetPublicIpPrefixResult

Return

A collection of values returned by getPublicIpPrefix.

See also

Parameters

name

Specifies the name of the public IP prefix.

resourceGroupName

Specifies the name of the resource group.


Return

A collection of values returned by getPublicIpPrefix.

See also

Parameters

argument

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