REST Resource: projects.locations.autoProtectionPolicies.bindings.matchingResources

Resource: BindingMatchingResource

BindingMatchingResource contains the details of a resource that matches the criteria of a binding.

JSON representation
{
  "name": string,
  "resource": string,
  "lastEvaluationTime": string,
  "autoProtectionDetails": {
    object (AutoProtectionDetails)
  }
}
Fields
name

string

Identifier. The resource name of the BindingMatchingResource. Format: projects/{project}/locations/{location}/autoProtectionPolicies/{autoProtectionPolicy}/bindings/{binding}/matchingResources/{matching_resource}

resource

string

Required. Immutable. Resource name of the workload that matches the criteria of the binding.

The format can be either a relative resource name (e.g., projects/my-project/zones/us-central1-a/instances/my-instance) or a schemeless full resource name (e.g., //compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance).

lastEvaluationTime

string (Timestamp format)

Output only. The timestamp when the resource was last evaluated for protection.

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: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

autoProtectionDetails

object (AutoProtectionDetails)

Output only. The auto protection details of the resource from the current binding's perspective.

AutoProtectionDetails

AutoProtectionDetails contains the protection details of a resource from the current binding's perspective.

JSON representation
{
  "state": enum (State),
  "backupPlanAssociation": string,
  "dataSource": string,
  "error": {
    object (Status)
  }
}
Fields
state

enum (State)

Output only. Protection state of the resource from the current binding's perspective. Output only.

backupPlanAssociation

string

Output only. Resource name of backup plan association linked to the resource, if any. Format: projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}

dataSource

string

Output only. Resource name of the datasource linked to the resource, if any. Format: projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{dataSourceId}

error

object (Status)

Output only. Error during last sync for protection/unprotection, if any.

State

Enum for protection state of the resource.

Enums
STATE_UNSPECIFIED State unspecified.
PROTECTED Resource is protected.
PROTECTION_FAILED Resource protection failed.
UNPROTECTING Resource is being unprotected.
UNPROTECTION_FAILED Resource unprotection failed.

Methods

get

Gets details of a single Binding Matching Resource.

list

Lists Binding Matching Resources for a given AutoProtectionPolicyBinding.