REST Resource: projects.locations.backupPlanAssociations

Resource: BackupPlanAssociation

A BackupPlanAssociation represents a single BackupPlanAssociation which contains details like workload, backup plan etc

JSON representation
{
  "name": string,
  "resourceType": string,
  "resource": string,
  "backupPlan": string,
  "createTime": string,
  "updateTime": string,
  "state": enum (State),
  "rulesConfigInfo": [
    {
      object (RuleConfigInfo)
    }
  ],
  "dataSource": string
}
Fields
name

string

Output only. Identifier. The resource name of BackupPlanAssociation in below format Format : projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}

resourceType

string

Required. Immutable. Resource type of workload on which backupplan is applied

resource

string

Required. Immutable. Resource name of workload on which backupplan is applied

backupPlan

string

Required. Resource name of backup plan which needs to be applied on workload. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}

createTime

string (Timestamp format)

Output only. The time when the instance was created.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

updateTime

string (Timestamp format)

Output only. The time when the instance was updated.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

state

enum (State)

Output only. The BackupPlanAssociation resource state.

rulesConfigInfo[]

object (RuleConfigInfo)

Output only. The config info related to backup rules.

dataSource

string

Output only. Resource name of data source which will be used as storage location for backups taken. Format : projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}

State

Enum for State of BackupPlan Association

Enums
STATE_UNSPECIFIED State not set.
CREATING The resource is being created.
ACTIVE The resource has been created and is fully usable.
DELETING The resource is being deleted.
INACTIVE The resource has been created but is not usable.
UPDATING The resource is being updated.

RuleConfigInfo

Message for rules config info.

JSON representation
{
  "ruleId": string,
  "lastBackupState": enum (LastBackupState),
  "lastBackupError": {
    object (Status)
  },
  "lastSuccessfulBackupConsistencyTime": string
}
Fields
ruleId

string

Output only. Backup Rule id fetched from backup plan.

lastBackupState

enum (LastBackupState)

Output only. The last backup state for rule.

lastBackupError

object (Status)

Output only. google.rpc.Status object to store the last backup error.

lastSuccessfulBackupConsistencyTime

string (Timestamp format)

Output only. The point in time when the last successful backup was captured from the source.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

LastBackupState

Enum for LastBackupState

Enums
LAST_BACKUP_STATE_UNSPECIFIED State not set.
FIRST_BACKUP_PENDING The first backup is pending.
PERMISSION_DENIED The most recent backup could not be run/failed because of the lack of permissions.
SUCCEEDED The last backup operation succeeded.
FAILED The last backup operation failed.

Methods

create

Create a BackupPlanAssociation

delete

Deletes a single BackupPlanAssociation.

get

Gets details of a single BackupPlanAssociation.

list

Lists BackupPlanAssociations in a given project and location.

triggerBackup

Triggers a new Backup.