Skip to main content

backups

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

Overview

Namebackups
TypeResource
Idgoogle.managedidentities.backups

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The unique name of the Backup in the form of projects/{project_id}/locations/global/domains/{domain_name}/backups/{name}
createTimestring (google-datetime)Output only. The time the backups was created.
labelsobjectOptional. Resource labels to represent user provided metadata.
statestringOutput only. The current state of the backup.
statusMessagestringOutput only. Additional information about the current status of this backup, if available.
typestringOutput only. Indicates whether it’s an on-demand backup or scheduled.
updateTimestring (google-datetime)Output only. Last update time.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, domainsId, backupsIdGets details of a single Backup.
listselectprojectsId, domainsIdpageSize, pageToken, filter, orderByLists Backup in a given project.
createinsertprojectsId, domainsIdbackupIdCreates a Backup for a domain.
patchupdateprojectsId, domainsId, backupsIdupdateMaskUpdates the labels for specified Backup.
deletedeleteprojectsId, domainsId, backupsIdDeletes identified 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
domainsIdstring
projectsIdstring
backupIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single Backup.

SELECT
name,
createTime,
labels,
state,
statusMessage,
type,
updateTime
FROM google.managedidentities.backups
WHERE projectsId = '{{ projectsId }}' -- required
AND domainsId = '{{ domainsId }}' -- required
AND backupsId = '{{ backupsId }}' -- required;

INSERT examples

Creates a Backup for a domain.

INSERT INTO google.managedidentities.backups (
data__labels,
projectsId,
domainsId,
backupId
)
SELECT
'{{ labels }}',
'{{ projectsId }}',
'{{ domainsId }}',
'{{ backupId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the labels for specified Backup.

UPDATE google.managedidentities.backups
SET
data__labels = '{{ labels }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND domainsId = '{{ domainsId }}' --required
AND backupsId = '{{ backupsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes identified Backup.

DELETE FROM google.managedidentities.backups
WHERE projectsId = '{{ projectsId }}' --required
AND domainsId = '{{ domainsId }}' --required
AND backupsId = '{{ backupsId }}' --required;