Class GetPublicIP
Inheritance
System.Object
GetPublicIP
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 GetPublicIP
Methods
View SourceInvokeAsync(GetPublicIPArgs, InvokeOptions)
Use this data source to access information about an existing Public IP Address.
Example Usage (reference an existing)
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Network.GetPublicIP.InvokeAsync(new Azure.Network.GetPublicIPArgs
{
Name = "name_of_public_ip",
ResourceGroupName = "name_of_resource_group",
}));
this.DomainNameLabel = example.Apply(example => example.DomainNameLabel);
this.PublicIpAddress = example.Apply(example => example.IpAddress);
}
[Output("domainNameLabel")]
public Output<string> DomainNameLabel { get; set; }
[Output("publicIpAddress")]
public Output<string> PublicIpAddress { get; set; }
}
Declaration
public static Task<GetPublicIPResult> InvokeAsync(GetPublicIPArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetPublicIPArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetPublicIPResult> |