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
create_backupexecprojectsIdCreates a backup for a Cloud SQL instance. This API can be used only to create on-demand backups.
list_backupsexecprojectsIdpageSize, pageToken, filterLists all backups associated with the project.
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.
delete_backupexecprojectsId, backupsIdDeletes the backup.

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

Creates a backup for a Cloud SQL instance. This API can be used only to create on-demand backups.

EXEC google.sqladmin.backups.create_backup 
@projectsId='{{ projectsId }}' --required
@@json=
'{
"description": "{{ description }}",
"instance": "{{ instance }}",
"location": "{{ location }}",
"ttlDays": "{{ ttlDays }}",
"expiryTime": "{{ expiryTime }}"
}';