func GetDomains(ctx *pulumi.Context, args *GetDomainsArgs, opts ...pulumi.InvokeOption) (*GetDomainsResult, error) {
	var rv GetDomainsResult
	err := ctx.Invoke("azuread:index/getDomains:getDomains", args, &rv, opts...)
	if err != nil {
		return nil, err
	}
	return &rv, nil
}
// Use this data source to access information about existing Domains within Azure Active Directory.
//
// ## API Permissions
//
// The following API permissions are required in order to use this data source.
//
// When authenticated with a service principal, this data source requires one of the following application roles: `Domain.Read.All` or `Directory.Read.All`
//
// When authenticated with a user principal, this data source does not require any additional roles.
Use this data source to access information about existing Domains within Azure Active Directory.

API Permissions

The following API permissions are required in order to use this data source.

When authenticated with a service principal, this data source requires one of the following application roles: `Domain.Read.All` or `Directory.Read.All`

When authenticated with a user principal, this data source does not require any additional roles.
// Use this data source to access information about existing Domains within Azure Active Directory . // // ## API Permissions // // The following API permissions are required in order to use this data source . // // When authenticated with a service principal this data source requires one of the following application roles : ` Domain . Read . All ` or ` Directory . Read . All ` // // When authenticated with a user principal this data source does not require any additional roles .
func GetDomains(ctx *pulumi.Context, args *GetDomainsArgs, opts ...pulumi.InvokeOption) (*GetDomainsResult, error) {
	var rv GetDomainsResult
	err := ctx.Invoke("azuread:index/getDomains:getDomains", args, &rv, opts...)
	if err != nil {
		return nil, err
	}
	return &rv, nil
}
func GetDomains ( ctx * pulumi . Context , args * GetDomainsArgs , opts ... pulumi . InvokeOption ) ( * GetDomainsResult , error ) { var rv GetDomainsResult err := ctx . Invoke ( " " , args , & rv , opts ... ) if err != nil { return nil , err } return & rv , nil }
Use this data source to access information about existing Domains within Azure Active Directory.
Use this data source to access information about existing Domains within Azure Active Directory .