Skip to main content

organizations

Creates, updates, deletes, gets or lists a organizations resource.

Overview

Nameorganizations
TypeResource
Idgoogle.cloudresourcemanager.organizations

Fields

NameDatatypeDescription
namestringOutput only. The resource name of the organization. This is the organization's relative path in the API. Its format is "organizations/[organization_id]". For example, "organizations/1234".
createTimestringOutput only. Timestamp when the Organization was created.
deleteTimestringOutput only. Timestamp when the Organization was requested for deletion.
directoryCustomerIdstringImmutable. The G Suite / Workspace customer id used in the Directory API.
displayNamestringOutput only. A human-readable string that refers to the organization in the Google Cloud Console. 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 Google Workspace customer that owns the organization.
etagstringOutput only. A checksum computed by the server based on the current value of the Organization resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
statestringOutput only. The organization's current lifecycle state.
updateTimestringOutput only. Timestamp when the Organization was last modified.

Methods

NameAccessible byRequired ParamsDescription
getSELECTorganizationsIdFetches an organization resource identified by the specified resource name.
searchEXECSearches organization resources that are visible to the user and satisfy the specified filter. This method returns organizations in an unspecified order. New organizations do not necessarily appear at the end of the results, and may take a small amount of time to appear. Search will only return organizations on which the user has the permission resourcemanager.organizations.get or has super admin privileges.

SELECT examples

Fetches an organization resource identified by the specified resource name.

SELECT
name,
createTime,
deleteTime,
directoryCustomerId,
displayName,
etag,
state,
updateTime
FROM google.cloudresourcemanager.organizations
WHERE organizationsId = '{{ organizationsId }}';