Resource: AutoProtectionPolicyBinding
An AutoprotectionPolicyBinding (APPA) acts as the bridge between an AutoprotectionPolicy and the scope (Project, Folder, or Organization) where the policy should be applied.
| JSON representation |
|---|
{ "name": string, "description": string, "state": enum ( |
| Fields | |
|---|---|
name |
Identifier. The resource name of the AutoProtectionPolicyBinding. Format: |
description |
Optional. A description of the binding. |
state |
Output only. The current state of the AutoProtectionPolicyBinding. |
scope |
Required. Immutable. Resource Id of target container on which policy will be applied. Format: projects/{projectId} |
bindingEvaluationSummary |
Output only. Summaries of the last policy application when the job has run, with one entry per resource type specified in the AutoProtectionPolicy. |
createTime |
Output only. The timestamp when the binding was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. The timestamp when the binding was last updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
etag |
Optional. Output only. The etag for the binding. If this is provided on update, it must match the server's etag. |
State
The state of an AutoProtectionPolicyBinding.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
The state of the binding is unspecified. |
CREATING |
The binding is being created. |
ACTIVE |
The binding is active. |
DELETION_INITIATED |
The binding deletion is initiated. |
BindingEvaluationSummary
BindingEvaluationSummary contains the summary of the last run of job that applies policy to matching resources for a given binding.
| JSON representation |
|---|
{ "matchingResourceCount": string, "protectedResourceCount": string, "failedResourceCount": string } |
| Fields | |
|---|---|
matchingResourceCount |
Output only. The number of resources that currently match the policy's criteria. |
protectedResourceCount |
Output only. The number of matching resources that are successfully protected. |
failedResourceCount |
Output only. The number of matching resources whose protection failed during job run. |
Methods |
|
|---|---|
|
Creates a new AutoProtectionPolicyBinding in a given project and location. |
|
Returns the auto protection policy binding read from the CCFE tables. |
|
InitiateDeleteAutoProtectionPolicyBinding initiates delete for AutoProtectionPolicy Binding |
|
Returns the auto protection policy bindings read from the CCFE tables. |