Skip to content

googleOrganization

Get information about a Google Cloud Organization. Note that you must have the roles/resourcemanagerOrganizationViewer role (or equivalent permissions) at the organization level to use this datasource.

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
const dataGoogleOrganizationOrg =
  new google.dataGoogleOrganization.DataGoogleOrganization(this, "org", {
    domain: "example.com",
  });
new google.folder.Folder(this, "sales", {
  display_name: "Sales",
  parent: dataGoogleOrganizationOrg.name,
});

Argument Reference

The arguments of this data source act as filters for querying the available Organizations. The given filters must match exactly one Organizations whose data will be exported as attributes. The following arguments are supported:

  • organization (Optional) - The Organization's numeric ID, including an optional organizations/ prefix.

  • domain (Optional) - The domain name of the Organization.

\~> NOTE: One of organization or domain must be specified.

Attributes Reference

The following additional attributes are exported:

  • orgId - The Organization ID.

  • name - The resource name of the Organization in the form organizations/{organizationId}.

  • directoryCustomerId - The Google for Work customer ID of the Organization.

  • createTime - Timestamp when the Organization was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

  • lifecycleState - The Organization's current lifecycle state.