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 constraint_name is the name of the constraint which this policy configures: * For example, "projects/123/policies/compute.disableSerialPortAccess". Note: |
spec |
Basic information about the Organization Policy. |
alternate |
Deprecated. |
dryRunSpec |
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. |
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. |