REST Resource: projects.policies

Resource: Policy

Defines a Cloud Organization Policy which is used to specify Constraints for configurations of Cloud Platform resources.

JSON representation
{
  "name": string,
  "spec": {
    object (PolicySpec)
  }
}
Fields
name

string

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

spec

object (PolicySpec)

Basic information about the Organization Policy.

Methods

create

Creates a Policy.

delete

Deletes a Policy.

get

Gets a Policy on a resource.

getEffectivePolicy

Gets the effective Policy on a resource.

list

Retrieves all of the Policies that exist on a particular resource.

patch

Updates a Policy.