- Resource: BackupPlanAssociation
- State
- RuleConfigInfo
- LastBackupState
- CloudSqlInstanceBackupPlanAssociationProperties
- Methods
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 ( |
Fields | |
---|---|
name |
Output only. Identifier. The resource name of BackupPlanAssociation in below format Format : projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId} |
resourceType |
Required. Immutable. |
resource |
Required. Immutable. Resource name of workload on which the backup plan is applied. The format can either be the resource name (e.g., "projects/my-project/zones/us-central1-a/instances/my-instance") or the full resource URI (e.g., "https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/my-instance"). |
backupPlan |
Required. Resource name of backup plan which needs to be applied on workload. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId} |
createTime |
Output only. The time when the instance was created. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. The time when the instance was updated. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
state |
Output only. The BackupPlanAssociation resource state. |
rulesConfigInfo[] |
Output only. The config info related to backup rules. |
dataSource |
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} |
backupPlanRevisionId |
Output only. The user friendly revision ID of the Example: v0, v1, v2, etc. |
backupPlanRevisionName |
Output only. The resource id of the Format: |
Union field resource_properties . Properties of the protected GCP resource. resource_properties can be only one of the following: |
|
cloudSqlInstanceBackupPlanAssociationProperties |
Output only. Cloud SQL instance's backup plan association properties. |
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 ( |
Fields | |
---|---|
ruleId |
Output only. Backup Rule id fetched from backup plan. |
lastBackupState |
Output only. The last backup state for rule. |
lastBackupError |
Output only. google.rpc.Status object to store the last backup error. |
lastSuccessfulBackupConsistencyTime |
Output only. The point in time when the last successful backup was captured from the source. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
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. |
CloudSqlInstanceBackupPlanAssociationProperties
Cloud SQL instance's BPA properties.
JSON representation |
---|
{ "instanceCreateTime": string } |
Fields | |
---|---|
instanceCreateTime |
Output only. The time when the instance was created. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Methods |
|
---|---|
|
Create a BackupPlanAssociation |
|
Deletes a single BackupPlanAssociation. |
|
List BackupPlanAssociations for a given resource type. |
|
Gets details of a single BackupPlanAssociation. |
|
Lists BackupPlanAssociations in a given project and location. |
|
Update a BackupPlanAssociation |
|
Triggers a new Backup. |