Skip to main content

organizations

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

Overview

Nameorganizations
TypeResource
Idgoogle.cloudresourcemanager.organizations

Fields

The following fields are returned by SELECT queries:

Successful response

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".
createTimestring (google-datetime)Output only. Timestamp when the Organization was created.
deleteTimestring (google-datetime)Output 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.
updateTimestring (google-datetime)Output only. Timestamp when the Organization was last modified.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectorganizationsIdFetches an organization resource identified by the specified resource name.
searchexecpageSize, pageToken, querySearches 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
organizationsIdstring
pageSizeinteger (int32)
pageTokenstring
querystring

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 }}' -- required;

Lifecycle Methods

Searches 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.

EXEC google.cloudresourcemanager.organizations.search 
@pageSize='{{ pageSize }}',
@pageToken='{{ pageToken }}',
@query='{{ query }}';