GetDomains
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.Allwithin theWindows Azure Active DirectoryAPI.
Example Usage
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; }
}
Coming soon!
import pulumi
import pulumi_azuread as azuread
aad_domains = azuread.get_domains()
pulumi.export("domains", aad_domains.domains)import * as pulumi from "@pulumi/pulumi";
import * as azuread from "@pulumi/azuread";
const aadDomains = pulumi.output(azuread.getDomains({ async: true }));
export const domains = aadDomains.domains;Using GetDomains
function getDomains(args: GetDomainsArgs, opts?: InvokeOptions): Promise<GetDomainsResult>function get_domains(include_unverified=None, only_default=None, only_initial=None, opts=None)func GetDomains(ctx *Context, args *GetDomainsArgs, opts ...InvokeOption) (*GetDomainsResult, error)public static class GetDomains {
public static Task<GetDomainsResult> InvokeAsync(GetDomainsArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Include
Unverified bool Set to
trueif unverified Azure AD Domains should be included. Defaults tofalse.- Only
Default bool Set to
trueto only return the default domain.- Only
Initial bool Set to
trueto only return the initial domain, which is your primary Azure Active Directory tenant domain. Defaults tofalse.
- Include
Unverified bool Set to
trueif unverified Azure AD Domains should be included. Defaults tofalse.- Only
Default bool Set to
trueto only return the default domain.- Only
Initial bool Set to
trueto only return the initial domain, which is your primary Azure Active Directory tenant domain. Defaults tofalse.
- include
Unverified boolean Set to
trueif unverified Azure AD Domains should be included. Defaults tofalse.- only
Default boolean Set to
trueto only return the default domain.- only
Initial boolean Set to
trueto only return the initial domain, which is your primary Azure Active Directory tenant domain. Defaults tofalse.
- include_
unverified bool Set to
trueif unverified Azure AD Domains should be included. Defaults tofalse.- only_
default bool Set to
trueto only return the default domain.- only_
initial bool Set to
trueto only return the initial domain, which is your primary Azure Active Directory tenant domain. Defaults tofalse.
GetDomains Result
The following output properties are available:
- Domains
List<Pulumi.
Azure AD. Outputs. Get Domains Domain> One or more
domainblocks as defined below.- Id string
The provider-assigned unique ID for this managed resource.
- Include
Unverified bool - Only
Default bool - Only
Initial bool
- Domains
[]Get
Domains Domain One or more
domainblocks as defined below.- Id string
The provider-assigned unique ID for this managed resource.
- Include
Unverified bool - Only
Default bool - Only
Initial bool
- domains
Get
Domains Domain[] One or more
domainblocks as defined below.- id string
The provider-assigned unique ID for this managed resource.
- include
Unverified boolean - only
Default boolean - only
Initial boolean
- domains
List[Get
Domains Domain] One or more
domainblocks as defined below.- id str
The provider-assigned unique ID for this managed resource.
- include_
unverified bool - only_
default bool - only_
initial bool
Supporting Types
GetDomainsDomain
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Authentication
Type string The authentication type of the domain (Managed or Federated).
- Domain
Name string The name of the domain.
- Is
Default bool Trueif this is the default domain that is used for user creation.- Is
Initial bool Trueif this is the initial domain created by Azure Activie Directory.- Is
Verified bool Trueif the domain has completed domain ownership verification.
- Authentication
Type string The authentication type of the domain (Managed or Federated).
- Domain
Name string The name of the domain.
- Is
Default bool Trueif this is the default domain that is used for user creation.- Is
Initial bool Trueif this is the initial domain created by Azure Activie Directory.- Is
Verified bool Trueif the domain has completed domain ownership verification.
- authentication
Type string The authentication type of the domain (Managed or Federated).
- domain
Name string The name of the domain.
- is
Default boolean Trueif this is the default domain that is used for user creation.- is
Initial boolean Trueif this is the initial domain created by Azure Activie Directory.- is
Verified boolean Trueif the domain has completed domain ownership verification.
- authentication
Type str The authentication type of the domain (Managed or Federated).
- domain
Name str The name of the domain.
- is
Default bool Trueif this is the default domain that is used for user creation.- is
Initial bool Trueif this is the initial domain created by Azure Activie Directory.- is
Verified bool Trueif the domain has completed domain ownership verification.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azuread
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azureadTerraform Provider.