Class GetPublicIpPrefix
Inheritance
System.Object
GetPublicIpPrefix
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.Network
Assembly: Pulumi.Azure.dll
Syntax
public static class GetPublicIpPrefix
Methods
View SourceInvokeAsync(GetPublicIpPrefixArgs, InvokeOptions)
Use this data source to access information about an existing Public IP Prefix.
Example Usage (reference an existing)
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Network.GetPublicIpPrefix.InvokeAsync(new Azure.Network.GetPublicIpPrefixArgs
{
Name = "name_of_public_ip",
ResourceGroupName = "name_of_resource_group",
}));
this.PublicIpPrefix = example.Apply(example => example.IpPrefix);
}
[Output("publicIpPrefix")]
public Output<string> PublicIpPrefix { get; set; }
}
Declaration
public static Task<GetPublicIpPrefixResult> InvokeAsync(GetPublicIpPrefixArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetPublicIpPrefixArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetPublicIpPrefixResult> |