title | platform |
---|---|
About the google_organization resource |
gcp |
A google_organization
is used to test a Google Organization resource
describe google_organization(name: "organizations/123456") do
its('name') { should eq "organizations/123456" }
its('lifecycle_state') { should cmp 'ACTIVE' }
end
Properties that can be accessed from the google_organization
resource:
-
name
: The resource name of the organization. This is the organization's relative path in the API. Its format is "organizations/[organizationId]". For example, "organizations/1234". -
display_name
: A human-readable string that refers to the Organization in the GCP Console UI. This string is set by the server and cannot be changed. The string will be set to the primary domain (for example, "google.com") of the G Suite customer that owns the organization. -
lifecycle_state
: The lifecycle state of the folder. Updates to the lifecycleState must be performed via folders.delete and folders.undelete. -
creation_time
: Timestamp when the Organization was created. Assigned by the server. -
owner
: The entity that owns the Organizationdirectory_customer_id
: The G Suite customer id used in the Directory API
Ensure the Cloud Resource Manager API is enabled for the current project.