Show / Hide Table of Contents

Class GetDnsZone

Inheritance
System.Object
GetDnsZone
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.PrivateDns
Assembly: Pulumi.Azure.dll
Syntax
public static class GetDnsZone

Methods

View Source

InvokeAsync(GetDnsZoneArgs, InvokeOptions)

Use this data source to access information about an existing Private DNS Zone.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var example = Output.Create(Azure.PrivateDns.GetDnsZone.InvokeAsync(new Azure.PrivateDns.GetDnsZoneArgs
    {
        Name = "contoso.internal",
        ResourceGroupName = "contoso-dns",
    }));
    this.PrivateDnsZoneId = example.Apply(example => example.Id);
}

[Output("privateDnsZoneId")]
public Output<string> PrivateDnsZoneId { get; set; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetDnsZoneResult> InvokeAsync(GetDnsZoneArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetDnsZoneArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetDnsZoneResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.