1. Packages
  2. Ibm Provider
  3. API Docs
  4. getEnterpriseAccounts
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getEnterpriseAccounts

Explore with Pulumi AI

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({});
Copy
import pulumi
import pulumi_ibm as ibm

accounts = ibm.get_enterprise_accounts()
Copy
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
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var accounts = Ibm.GetEnterpriseAccounts.Invoke();

});
Copy
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();

    }
}
Copy
variables:
  accounts:
    fn::invoke:
      function: ibm:getEnterpriseAccounts
      arguments: {}
Copy

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>
Copy
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]
Copy
func GetEnterpriseAccounts(ctx *Context, args *GetEnterpriseAccountsArgs, opts ...InvokeOption) (*GetEnterpriseAccountsResult, error)
func GetEnterpriseAccountsOutput(ctx *Context, args *GetEnterpriseAccountsOutputArgs, opts ...InvokeOption) GetEnterpriseAccountsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetEnterpriseAccountsResult> getEnterpriseAccounts(GetEnterpriseAccountsArgs args, InvokeOptions options)
public static Output<GetEnterpriseAccountsResult> getEnterpriseAccounts(GetEnterpriseAccountsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getEnterpriseAccounts:getEnterpriseAccounts
  arguments:
    # arguments dictionary
Copy

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