1. Packages
  2. Packages
  3. OVH
  4. API Docs
  5. getEmailDomainAccounts
Viewing docs for OVHCloud v2.14.0
published on Monday, Jun 15, 2026 by OVHcloud
ovh logo
Viewing docs for OVHCloud v2.14.0
published on Monday, Jun 15, 2026 by OVHcloud

    List email accounts for a given domain.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const accounts = ovh.getEmailDomainAccounts({
        domain: "example.com",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    accounts = ovh.get_email_domain_accounts(domain="example.com")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ovh.GetEmailDomainAccounts(ctx, &ovh.GetEmailDomainAccountsArgs{
    			Domain: "example.com",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var accounts = Ovh.GetEmailDomainAccounts.Invoke(new()
        {
            Domain = "example.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.OvhFunctions;
    import com.pulumi.ovh.inputs.GetEmailDomainAccountsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var accounts = OvhFunctions.getEmailDomainAccounts(GetEmailDomainAccountsArgs.builder()
                .domain("example.com")
                .build());
    
        }
    }
    
    variables:
      accounts:
        fn::invoke:
          function: ovh:getEmailDomainAccounts
          arguments:
            domain: example.com
    
    Example coming soon!
    

    Using getEmailDomainAccounts

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getEmailDomainAccounts(args: GetEmailDomainAccountsArgs, opts?: InvokeOptions): Promise<GetEmailDomainAccountsResult>
    function getEmailDomainAccountsOutput(args: GetEmailDomainAccountsOutputArgs, opts?: InvokeOptions): Output<GetEmailDomainAccountsResult>
    def get_email_domain_accounts(account_name: Optional[str] = None,
                                  description: Optional[str] = None,
                                  domain: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetEmailDomainAccountsResult
    def get_email_domain_accounts_output(account_name: pulumi.Input[Optional[str]] = None,
                                  description: pulumi.Input[Optional[str]] = None,
                                  domain: pulumi.Input[Optional[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetEmailDomainAccountsResult]
    func GetEmailDomainAccounts(ctx *Context, args *GetEmailDomainAccountsArgs, opts ...InvokeOption) (*GetEmailDomainAccountsResult, error)
    func GetEmailDomainAccountsOutput(ctx *Context, args *GetEmailDomainAccountsOutputArgs, opts ...InvokeOption) GetEmailDomainAccountsResultOutput

    > Note: This function is named GetEmailDomainAccounts in the Go SDK.

    public static class GetEmailDomainAccounts 
    {
        public static Task<GetEmailDomainAccountsResult> InvokeAsync(GetEmailDomainAccountsArgs args, InvokeOptions? opts = null)
        public static Output<GetEmailDomainAccountsResult> Invoke(GetEmailDomainAccountsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEmailDomainAccountsResult> getEmailDomainAccounts(GetEmailDomainAccountsArgs args, InvokeOptions options)
    public static Output<GetEmailDomainAccountsResult> getEmailDomainAccounts(GetEmailDomainAccountsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:index/getEmailDomainAccounts:getEmailDomainAccounts
      arguments:
        # arguments dictionary
    data "ovh_getemaildomainaccounts" "name" {
        # arguments
    }

    The following arguments are supported:

    Domain string
    Name of the email domain
    AccountName string
    Filter accounts by name
    Description string
    Filter accounts by description
    Domain string
    Name of the email domain
    AccountName string
    Filter accounts by name
    Description string
    Filter accounts by description
    domain string
    Name of the email domain
    account_name string
    Filter accounts by name
    description string
    Filter accounts by description
    domain String
    Name of the email domain
    accountName String
    Filter accounts by name
    description String
    Filter accounts by description
    domain string
    Name of the email domain
    accountName string
    Filter accounts by name
    description string
    Filter accounts by description
    domain str
    Name of the email domain
    account_name str
    Filter accounts by name
    description str
    Filter accounts by description
    domain String
    Name of the email domain
    accountName String
    Filter accounts by name
    description String
    Filter accounts by description

    getEmailDomainAccounts Result

    The following output properties are available:

    Accounts List<string>
    List of email account names
    Domain string
    Name of the email domain
    Id string
    The provider-assigned unique ID for this managed resource.
    AccountName string
    Filter accounts by name
    Description string
    Filter accounts by description
    Accounts []string
    List of email account names
    Domain string
    Name of the email domain
    Id string
    The provider-assigned unique ID for this managed resource.
    AccountName string
    Filter accounts by name
    Description string
    Filter accounts by description
    accounts list(string)
    List of email account names
    domain string
    Name of the email domain
    id string
    The provider-assigned unique ID for this managed resource.
    account_name string
    Filter accounts by name
    description string
    Filter accounts by description
    accounts List<String>
    List of email account names
    domain String
    Name of the email domain
    id String
    The provider-assigned unique ID for this managed resource.
    accountName String
    Filter accounts by name
    description String
    Filter accounts by description
    accounts string[]
    List of email account names
    domain string
    Name of the email domain
    id string
    The provider-assigned unique ID for this managed resource.
    accountName string
    Filter accounts by name
    description string
    Filter accounts by description
    accounts Sequence[str]
    List of email account names
    domain str
    Name of the email domain
    id str
    The provider-assigned unique ID for this managed resource.
    account_name str
    Filter accounts by name
    description str
    Filter accounts by description
    accounts List<String>
    List of email account names
    domain String
    Name of the email domain
    id String
    The provider-assigned unique ID for this managed resource.
    accountName String
    Filter accounts by name
    description String
    Filter accounts by description

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    Viewing docs for OVHCloud v2.14.0
    published on Monday, Jun 15, 2026 by OVHcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial