Skip to main content

backups

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

Overview

Namebackups
TypeResource
Idgoogle.managedidentities.backups

Fields

NameDatatypeDescription
namestringOutput only. The unique name of the Backup in the form of projects/{project_id}/locations/global/domains/{domain_name}/backups/{name}
createTimestringOutput 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.
updateTimestringOutput only. Last update time.

Methods

NameAccessible byRequired ParamsDescription
getSELECTbackupsId, domainsId, projectsIdGets details of a single Backup.
listSELECTdomainsId, projectsIdLists Backup in a given project.
createINSERTdomainsId, projectsIdCreates a Backup for a domain.
deleteDELETEbackupsId, domainsId, projectsIdDeletes identified Backup.
patchUPDATEbackupsId, domainsId, projectsIdUpdates the labels for specified Backup.

SELECT examples

Lists Backup in a given project.

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

INSERT example

Use the following StackQL query and manifest file to create a new backups resource.

/*+ create */
INSERT INTO google.managedidentities.backups (
domainsId,
projectsId,
labels
)
SELECT
'{{ domainsId }}',
'{{ projectsId }}',
'{{ labels }}'
;

UPDATE example

Updates a backups resource.

/*+ update */
UPDATE google.managedidentities.backups
SET
labels = '{{ labels }}'
WHERE
backupsId = '{{ backupsId }}'
AND domainsId = '{{ domainsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified backups resource.

/*+ delete */
DELETE FROM google.managedidentities.backups
WHERE backupsId = '{{ backupsId }}'
AND domainsId = '{{ domainsId }}'
AND projectsId = '{{ projectsId }}';