ibm 1.78.0 published on Wednesday, Apr 30, 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({});
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:
getEnterpriseAccounts Result
The following output properties are available:
- Accounts
List<Get
Enterprise Accounts Account> - (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
[]Get
Enterprise Accounts Account - (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<Get
Enterprise Accounts Account> - (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
Get
Enterprise Accounts Account[] - (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[Get
Enterprise Accounts Account] - (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
- Created
At string - (Timestamp) The time stamp at which an account is created.
- Created
By 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.
- Enterprise
Account stringId - (String) The enterprise account ID.
- Enterprise
Id string - (String) The enterprise ID that an account is a part of.
- Enterprise
Path string - (String) The path from an enterprise to the particular account.
- Id string
- (String) The unique identifier of an accounts.
- Is
Enterprise boolAccount - (String) The flag to indicate whether the account is an enterprise account or not.
- Name string
- The name of an account..
- Owner
Email string - (String) The Email address of the owner of an account.
- Owner
Iam stringId - (String) The IAM ID of the owner of an account.
- Paid bool
- (String) The type of account, whether it is
free
, orpaid
. - Parent string
- (String) The CRN of the parent of an account.
- State string
- (String) The state of an account.
- Updated
At string - (Timestamp) The time stamp at which an account was last updated.
- Updated
By string - (String) The IAM ID of the user or service that updated an account.
- Url string
- (String) The URL of an account.
- Created
At string - (Timestamp) The time stamp at which an account is created.
- Created
By 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.
- Enterprise
Account stringId - (String) The enterprise account ID.
- Enterprise
Id string - (String) The enterprise ID that an account is a part of.
- Enterprise
Path string - (String) The path from an enterprise to the particular account.
- Id string
- (String) The unique identifier of an accounts.
- Is
Enterprise boolAccount - (String) The flag to indicate whether the account is an enterprise account or not.
- Name string
- The name of an account..
- Owner
Email string - (String) The Email address of the owner of an account.
- Owner
Iam stringId - (String) The IAM ID of the owner of an account.
- Paid bool
- (String) The type of account, whether it is
free
, orpaid
. - Parent string
- (String) The CRN of the parent of an account.
- State string
- (String) The state of an account.
- Updated
At string - (Timestamp) The time stamp at which an account was last updated.
- Updated
By string - (String) The IAM ID of the user or service that updated an account.
- Url string
- (String) The URL of an account.
- created
At String - (Timestamp) The time stamp at which an account is created.
- created
By 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.
- enterprise
Account StringId - (String) The enterprise account ID.
- enterprise
Id String - (String) The enterprise ID that an account is a part of.
- enterprise
Path String - (String) The path from an enterprise to the particular account.
- id String
- (String) The unique identifier of an accounts.
- is
Enterprise BooleanAccount - (String) The flag to indicate whether the account is an enterprise account or not.
- name String
- The name of an account..
- owner
Email String - (String) The Email address of the owner of an account.
- owner
Iam StringId - (String) The IAM ID of the owner of an account.
- paid Boolean
- (String) The type of account, whether it is
free
, orpaid
. - parent String
- (String) The CRN of the parent of an account.
- state String
- (String) The state of an account.
- updated
At String - (Timestamp) The time stamp at which an account was last updated.
- updated
By String - (String) The IAM ID of the user or service that updated an account.
- url String
- (String) The URL of an account.
- created
At string - (Timestamp) The time stamp at which an account is created.
- created
By 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.
- enterprise
Account stringId - (String) The enterprise account ID.
- enterprise
Id string - (String) The enterprise ID that an account is a part of.
- enterprise
Path string - (String) The path from an enterprise to the particular account.
- id string
- (String) The unique identifier of an accounts.
- is
Enterprise booleanAccount - (String) The flag to indicate whether the account is an enterprise account or not.
- name string
- The name of an account..
- owner
Email string - (String) The Email address of the owner of an account.
- owner
Iam stringId - (String) The IAM ID of the owner of an account.
- paid boolean
- (String) The type of account, whether it is
free
, orpaid
. - parent string
- (String) The CRN of the parent of an account.
- state string
- (String) The state of an account.
- updated
At string - (Timestamp) The time stamp at which an account was last updated.
- updated
By 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_ strid - (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_ boolaccount - (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_ strid - (String) The IAM ID of the owner of an account.
- paid bool
- (String) The type of account, whether it is
free
, orpaid
. - 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.
- created
At String - (Timestamp) The time stamp at which an account is created.
- created
By 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.
- enterprise
Account StringId - (String) The enterprise account ID.
- enterprise
Id String - (String) The enterprise ID that an account is a part of.
- enterprise
Path String - (String) The path from an enterprise to the particular account.
- id String
- (String) The unique identifier of an accounts.
- is
Enterprise BooleanAccount - (String) The flag to indicate whether the account is an enterprise account or not.
- name String
- The name of an account..
- owner
Email String - (String) The Email address of the owner of an account.
- owner
Iam StringId - (String) The IAM ID of the owner of an account.
- paid Boolean
- (String) The type of account, whether it is
free
, orpaid
. - parent String
- (String) The CRN of the parent of an account.
- state String
- (String) The state of an account.
- updated
At String - (Timestamp) The time stamp at which an account was last updated.
- updated
By 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.