REST Resource: projects.policies Stay organized with collections Save and categorize content based on your preferences.
Resource: Policy
Defines an organization policy which is used to specify constraints for configurations of Google Cloud resources.
| JSON representation |
|---|
{"name":string,"spec":{object ( |
| Fields | |
|---|---|
name |
Immutable. The resource name of the policy. Must be one of the following forms, where
For example, Note: |
spec |
Basic information about the organization policy. |
alternate |
This item is deprecated! Deprecated. |
dry |
Dry-run policy. Audit-only policy, can be used to monitor how the policy would have impacted the existing and future resources if it's enforced. |
etag |
Optional. An opaque tag indicating the current state of the policy, used for concurrency control. This 'etag' is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. |
Methods | |
|---|---|
| Creates a policy. |
| Deletes a policy. |
| Gets a policy on a resource. |
| Gets the effective policy on a resource. |
| Retrieves all of the policies that exist on a particular resource. |
| Updates a policy. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-14 UTC.