Skip to main content

backups

Creates, updates, deletes, gets or lists a backups resource.

Overview

Namebackups
TypeResource
Idgoogle.sqladmin.backups

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
delete_backupexecprojectsId, backupsIdDeletes the backup.
get_backupexecprojectsId, backupsIdRetrieves a resource containing information about a backup.
update_backupexecprojectsId, backupsIdupdateMaskUpdates the retention period and description of the backup. You can use this API to update final backups only.
list_backupsexecprojectsIdpageToken, filter, pageSizeLists all backups associated with the project.
create_backupexecprojectsIdCreates a backup for a Cloud SQL instance. This API can be used only to create on-demand backups.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
backupsIdstring
projectsIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

Lifecycle Methods

Deletes the backup.

EXEC google.sqladmin.backups.delete_backup 
@projectsId='{{ projectsId }}' --required,
@backupsId='{{ backupsId }}' --required
;