Skip to main content

policies

Overview

Namepolicies
TypeResource
Idgoogle.orgpolicy.policies

Fields

NameDatatypeDescription
namestringImmutable. The resource name of the policy. Must be one of the following forms, where constraint_name is the name of the constraint which this policy configures: projects/{project_number}/policies/{constraint_name} folders/{folder_id}/policies/{constraint_name} * organizations/{organization_id}/policies/{constraint_name} For example, projects/123/policies/compute.disableSerialPortAccess. Note: projects/{project_id}/policies/{constraint_name} is also an acceptable name for API requests, but responses will return the name using the equivalent project number.
dryRunSpecobjectDefines a Google Cloud policy specification which is used to specify constraints for configurations of Google Cloud resources.
specobjectDefines a Google Cloud policy specification which is used to specify constraints for configurations of Google Cloud resources.
alternateobjectSimilar to PolicySpec but with an extra 'launch' field for launch reference. The PolicySpec here is specific for dry-run/darklaunch.

Methods

NameAccessible byRequired ParamsDescription
folders_policies_getSELECTfoldersId, policiesIdGets a policy on a resource. If no policy is set on the resource, NOT_FOUND is returned. The etag value can be used with UpdatePolicy() to update a policy during read-modify-write.
folders_policies_listSELECTfoldersIdRetrieves all of the policies that exist on a particular resource.
organizations_policies_getSELECTorganizationsId, policiesIdGets a policy on a resource. If no policy is set on the resource, NOT_FOUND is returned. The etag value can be used with UpdatePolicy() to update a policy during read-modify-write.
organizations_policies_listSELECTorganizationsIdRetrieves all of the policies that exist on a particular resource.
projects_policies_getSELECTpoliciesId, projectsIdGets a policy on a resource. If no policy is set on the resource, NOT_FOUND is returned. The etag value can be used with UpdatePolicy() to update a policy during read-modify-write.
projects_policies_listSELECTprojectsIdRetrieves all of the policies that exist on a particular resource.
folders_policies_createINSERTfoldersIdCreates a policy. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the constraint does not exist. Returns a google.rpc.Status with google.rpc.Code.ALREADY_EXISTS if the policy already exists on the given Google Cloud resource.
organizations_policies_createINSERTorganizationsIdCreates a policy. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the constraint does not exist. Returns a google.rpc.Status with google.rpc.Code.ALREADY_EXISTS if the policy already exists on the given Google Cloud resource.
projects_policies_createINSERTprojectsIdCreates a policy. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the constraint does not exist. Returns a google.rpc.Status with google.rpc.Code.ALREADY_EXISTS if the policy already exists on the given Google Cloud resource.
folders_policies_deleteDELETEfoldersId, policiesIdDeletes a policy. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the constraint or organization policy does not exist.
organizations_policies_deleteDELETEorganizationsId, policiesIdDeletes a policy. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the constraint or organization policy does not exist.
projects_policies_deleteDELETEpoliciesId, projectsIdDeletes a policy. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the constraint or organization policy does not exist.
_folders_policies_listEXECfoldersIdRetrieves all of the policies that exist on a particular resource.
_organizations_policies_listEXECorganizationsIdRetrieves all of the policies that exist on a particular resource.
_projects_policies_listEXECprojectsIdRetrieves all of the policies that exist on a particular resource.
folders_policies_patchEXECfoldersId, policiesIdUpdates a policy. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the constraint or the policy do not exist. Returns a google.rpc.Status with google.rpc.Code.ABORTED if the etag supplied in the request does not match the persisted etag of the policy Note: the supplied policy will perform a full overwrite of all fields.
organizations_policies_patchEXECorganizationsId, policiesIdUpdates a policy. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the constraint or the policy do not exist. Returns a google.rpc.Status with google.rpc.Code.ABORTED if the etag supplied in the request does not match the persisted etag of the policy Note: the supplied policy will perform a full overwrite of all fields.
projects_policies_patchEXECpoliciesId, projectsIdUpdates a policy. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the constraint or the policy do not exist. Returns a google.rpc.Status with google.rpc.Code.ABORTED if the etag supplied in the request does not match the persisted etag of the policy Note: the supplied policy will perform a full overwrite of all fields.