Import the details of an existing IBM Cloud account as a read-only data source. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.

Example Usage

data "ibm_org" "orgData" {
  org = ""

data "ibm_account" "accountData" {
  org_guid = "${}"

Argument Reference

The following arguments are supported:

  • org_guid - (Required, string) The GUID of the IBM Cloud organization. You can retrieve the value from the ibm_org data source or by running the ibmcloud iam orgs --guid command in the IBM Cloud CLI.

Attribute Reference

The following attributes are exported:

  • id - The unique identifier of the account.
  • account_users - The list of account user’s in the account. Nested account_users blocks have the following structure:
    • id - The account user Id.
    • email - The account user email.
    • state - The account user state.
    • role - The account user role.