1. Packages
  2. Ibm Provider
  3. API Docs
  4. getEnterpriseAccounts
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getEnterpriseAccounts

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Retrieve an information from an enterprise_accounts data source. For more information, about enterprise account, refer to setting up accounts to an enterprise.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const accounts = ibm.getEnterpriseAccounts({});
    
    import pulumi
    import pulumi_ibm as ibm
    
    accounts = ibm.get_enterprise_accounts()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.GetEnterpriseAccounts(ctx, &ibm.GetEnterpriseAccountsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var accounts = Ibm.GetEnterpriseAccounts.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetEnterpriseAccountsArgs;
    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 = IbmFunctions.getEnterpriseAccounts();
    
        }
    }
    
    variables:
      accounts:
        fn::invoke:
          function: ibm:getEnterpriseAccounts
          arguments: {}
    

    Using getEnterpriseAccounts

    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 getEnterpriseAccounts(args: GetEnterpriseAccountsArgs, opts?: InvokeOptions): Promise<GetEnterpriseAccountsResult>
    function getEnterpriseAccountsOutput(args: GetEnterpriseAccountsOutputArgs, opts?: InvokeOptions): Output<GetEnterpriseAccountsResult>
    def get_enterprise_accounts(id: Optional[str] = None,
                                name: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetEnterpriseAccountsResult
    def get_enterprise_accounts_output(id: Optional[pulumi.Input[str]] = None,
                                name: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetEnterpriseAccountsResult]
    func GetEnterpriseAccounts(ctx *Context, args *GetEnterpriseAccountsArgs, opts ...InvokeOption) (*GetEnterpriseAccountsResult, error)
    func GetEnterpriseAccountsOutput(ctx *Context, args *GetEnterpriseAccountsOutputArgs, opts ...InvokeOption) GetEnterpriseAccountsResultOutput

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

    public static class GetEnterpriseAccounts 
    {
        public static Task<GetEnterpriseAccountsResult> InvokeAsync(GetEnterpriseAccountsArgs args, InvokeOptions? opts = null)
        public static Output<GetEnterpriseAccountsResult> Invoke(GetEnterpriseAccountsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEnterpriseAccountsResult> getEnterpriseAccounts(GetEnterpriseAccountsArgs args, InvokeOptions options)
    public static Output<GetEnterpriseAccountsResult> getEnterpriseAccounts(GetEnterpriseAccountsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getEnterpriseAccounts:getEnterpriseAccounts
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    (String) The unique identifier of an accounts.
    Name string
    The name of an account..
    Id string
    (String) The unique identifier of an accounts.
    Name string
    The name of an account..
    id String
    (String) The unique identifier of an accounts.
    name String
    The name of an account..
    id string
    (String) The unique identifier of an accounts.
    name string
    The name of an account..
    id str
    (String) The unique identifier of an accounts.
    name str
    The name of an account..
    id String
    (String) The unique identifier of an accounts.
    name String
    The name of an account..

    getEnterpriseAccounts Result

    The following output properties are available:

    Accounts List<GetEnterpriseAccountsAccount>
    (List) A list of Nested resources blocks has the following structure.
    Id string
    (String) The unique identifier of an accounts.
    Name string
    (String) The name of an enterprise.
    Accounts []GetEnterpriseAccountsAccount
    (List) A list of Nested resources blocks has the following structure.
    Id string
    (String) The unique identifier of an accounts.
    Name string
    (String) The name of an enterprise.
    accounts List<GetEnterpriseAccountsAccount>
    (List) A list of Nested resources blocks has the following structure.
    id String
    (String) The unique identifier of an accounts.
    name String
    (String) The name of an enterprise.
    accounts GetEnterpriseAccountsAccount[]
    (List) A list of Nested resources blocks has the following structure.
    id string
    (String) The unique identifier of an accounts.
    name string
    (String) The name of an enterprise.
    accounts Sequence[GetEnterpriseAccountsAccount]
    (List) A list of Nested resources blocks has the following structure.
    id str
    (String) The unique identifier of an accounts.
    name str
    (String) The name of an enterprise.
    accounts List<Property Map>
    (List) A list of Nested resources blocks has the following structure.
    id String
    (String) The unique identifier of an accounts.
    name String
    (String) The name of an enterprise.

    Supporting Types

    GetEnterpriseAccountsAccount

    CreatedAt string
    (Timestamp) The time stamp at which an account is created.
    CreatedBy string
    (String) The IAM ID of the user or service that created an account.
    Crn string
    (String) The Cloud Resource Name (CRN) of an account.
    EnterpriseAccountId string
    (String) The enterprise account ID.
    EnterpriseId string
    (String) The enterprise ID that an account is a part of.
    EnterprisePath string
    (String) The path from an enterprise to the particular account.
    Id string
    (String) The unique identifier of an accounts.
    IsEnterpriseAccount bool
    (String) The flag to indicate whether the account is an enterprise account or not.
    Name string
    The name of an account..
    OwnerEmail string
    (String) The Email address of the owner of an account.
    OwnerIamId string
    (String) The IAM ID of the owner of an account.
    bool
    (String) The type of account, whether it is free, or paid.
    Parent string
    (String) The CRN of the parent of an account.
    State string
    (String) The state of an account.
    UpdatedAt string
    (Timestamp) The time stamp at which an account was last updated.
    UpdatedBy string
    (String) The IAM ID of the user or service that updated an account.
    Url string
    (String) The URL of an account.
    CreatedAt string
    (Timestamp) The time stamp at which an account is created.
    CreatedBy string
    (String) The IAM ID of the user or service that created an account.
    Crn string
    (String) The Cloud Resource Name (CRN) of an account.
    EnterpriseAccountId string
    (String) The enterprise account ID.
    EnterpriseId string
    (String) The enterprise ID that an account is a part of.
    EnterprisePath string
    (String) The path from an enterprise to the particular account.
    Id string
    (String) The unique identifier of an accounts.
    IsEnterpriseAccount bool
    (String) The flag to indicate whether the account is an enterprise account or not.
    Name string
    The name of an account..
    OwnerEmail string
    (String) The Email address of the owner of an account.
    OwnerIamId string
    (String) The IAM ID of the owner of an account.
    bool
    (String) The type of account, whether it is free, or paid.
    Parent string
    (String) The CRN of the parent of an account.
    State string
    (String) The state of an account.
    UpdatedAt string
    (Timestamp) The time stamp at which an account was last updated.
    UpdatedBy string
    (String) The IAM ID of the user or service that updated an account.
    Url string
    (String) The URL of an account.
    createdAt String
    (Timestamp) The time stamp at which an account is created.
    createdBy String
    (String) The IAM ID of the user or service that created an account.
    crn String
    (String) The Cloud Resource Name (CRN) of an account.
    enterpriseAccountId String
    (String) The enterprise account ID.
    enterpriseId String
    (String) The enterprise ID that an account is a part of.
    enterprisePath String
    (String) The path from an enterprise to the particular account.
    id String
    (String) The unique identifier of an accounts.
    isEnterpriseAccount Boolean
    (String) The flag to indicate whether the account is an enterprise account or not.
    name String
    The name of an account..
    ownerEmail String
    (String) The Email address of the owner of an account.
    ownerIamId String
    (String) The IAM ID of the owner of an account.
    Boolean
    (String) The type of account, whether it is free, or paid.
    parent String
    (String) The CRN of the parent of an account.
    state String
    (String) The state of an account.
    updatedAt String
    (Timestamp) The time stamp at which an account was last updated.
    updatedBy String
    (String) The IAM ID of the user or service that updated an account.
    url String
    (String) The URL of an account.
    createdAt string
    (Timestamp) The time stamp at which an account is created.
    createdBy string
    (String) The IAM ID of the user or service that created an account.
    crn string
    (String) The Cloud Resource Name (CRN) of an account.
    enterpriseAccountId string
    (String) The enterprise account ID.
    enterpriseId string
    (String) The enterprise ID that an account is a part of.
    enterprisePath string
    (String) The path from an enterprise to the particular account.
    id string
    (String) The unique identifier of an accounts.
    isEnterpriseAccount boolean
    (String) The flag to indicate whether the account is an enterprise account or not.
    name string
    The name of an account..
    ownerEmail string
    (String) The Email address of the owner of an account.
    ownerIamId string
    (String) The IAM ID of the owner of an account.
    boolean
    (String) The type of account, whether it is free, or paid.
    parent string
    (String) The CRN of the parent of an account.
    state string
    (String) The state of an account.
    updatedAt string
    (Timestamp) The time stamp at which an account was last updated.
    updatedBy string
    (String) The IAM ID of the user or service that updated an account.
    url string
    (String) The URL of an account.
    created_at str
    (Timestamp) The time stamp at which an account is created.
    created_by str
    (String) The IAM ID of the user or service that created an account.
    crn str
    (String) The Cloud Resource Name (CRN) of an account.
    enterprise_account_id str
    (String) The enterprise account ID.
    enterprise_id str
    (String) The enterprise ID that an account is a part of.
    enterprise_path str
    (String) The path from an enterprise to the particular account.
    id str
    (String) The unique identifier of an accounts.
    is_enterprise_account bool
    (String) The flag to indicate whether the account is an enterprise account or not.
    name str
    The name of an account..
    owner_email str
    (String) The Email address of the owner of an account.
    owner_iam_id str
    (String) The IAM ID of the owner of an account.
    bool
    (String) The type of account, whether it is free, or paid.
    parent str
    (String) The CRN of the parent of an account.
    state str
    (String) The state of an account.
    updated_at str
    (Timestamp) The time stamp at which an account was last updated.
    updated_by str
    (String) The IAM ID of the user or service that updated an account.
    url str
    (String) The URL of an account.
    createdAt String
    (Timestamp) The time stamp at which an account is created.
    createdBy String
    (String) The IAM ID of the user or service that created an account.
    crn String
    (String) The Cloud Resource Name (CRN) of an account.
    enterpriseAccountId String
    (String) The enterprise account ID.
    enterpriseId String
    (String) The enterprise ID that an account is a part of.
    enterprisePath String
    (String) The path from an enterprise to the particular account.
    id String
    (String) The unique identifier of an accounts.
    isEnterpriseAccount Boolean
    (String) The flag to indicate whether the account is an enterprise account or not.
    name String
    The name of an account..
    ownerEmail String
    (String) The Email address of the owner of an account.
    ownerIamId String
    (String) The IAM ID of the owner of an account.
    Boolean
    (String) The type of account, whether it is free, or paid.
    parent String
    (String) The CRN of the parent of an account.
    state String
    (String) The state of an account.
    updatedAt String
    (Timestamp) The time stamp at which an account was last updated.
    updatedBy String
    (String) The IAM ID of the user or service that updated an account.
    url String
    (String) The URL of an account.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud