Show / Hide Table of Contents

Class GetDomains

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

Methods

View Source

InvokeAsync(GetDomainsArgs, InvokeOptions)

Use this data source to access information about an existing Domains within Azure Active Directory.

NOTE: If you're authenticating using a Service Principal then it must have permissions to Directory.Read.All within the Windows Azure Active Directory API.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using AzureAD = Pulumi.AzureAD;

class MyStack : Stack
{
public MyStack()
{
    var aadDomains = Output.Create(AzureAD.GetDomains.InvokeAsync());
    this.Domains = aadDomains.Apply(aadDomains => aadDomains.Domains);
}

[Output("domains")]
public Output<string> Domains { get; set; }
}

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

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