Organizations
class Organizations extends Resource (View source)
The "organizations" collection of methods.
Typical usage is:
$cloudresourcemanagerService = new Google\Service\CloudResourceManager(...);
$organizations = $cloudresourcemanagerService->organizations;
Methods
Fetches an organization resource identified by the specified resource name.
Gets the access control policy for an organization resource. The policy may
be empty if no such policy or resource exists. The resource
field should be
the organization's resource name, for example: "organizations/123".
Searches organization resources that are visible to the user and satisfy the specified filter. This method returns organizations in an unspecified order.
Sets the access control policy on an organization resource. Replaces any
existing policy. The resource
field should be the organization's resource
name, for example: "organizations/123". Authorization requires the IAM
permission resourcemanager.organizations.setIamPolicy
on the specified
organization. (organizations.setIamPolicy)
Returns the permissions that a caller has on the specified organization. The
resource
field should be the organization's resource name, for example:
"organizations/123". There are no permissions required for making this API
call. (organizations.testIamPermissions)
Details
Organization
get(string $name, array $optParams = [])
Fetches an organization resource identified by the specified resource name.
(organizations.get)
Policy
getIamPolicy(string $resource, GetIamPolicyRequest $postBody, array $optParams = [])
Gets the access control policy for an organization resource. The policy may
be empty if no such policy or resource exists. The resource
field should be
the organization's resource name, for example: "organizations/123".
Authorization requires the IAM permission
resourcemanager.organizations.getIamPolicy
on the specified organization.
(organizations.getIamPolicy)
SearchOrganizationsResponse
search(array $optParams = [])
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.
(organizations.search)
Policy
setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on an organization resource. Replaces any
existing policy. The resource
field should be the organization's resource
name, for example: "organizations/123". Authorization requires the IAM
permission resourcemanager.organizations.setIamPolicy
on the specified
organization. (organizations.setIamPolicy)
TestIamPermissionsResponse
testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])
Returns the permissions that a caller has on the specified organization. The
resource
field should be the organization's resource name, for example:
"organizations/123". There are no permissions required for making this API
call. (organizations.testIamPermissions)