Skip to main content

backup_vaults

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

Overview

Namebackup_vaults
TypeResource
Idgoogle.netapp.backup_vaults

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The resource name of the backup vault. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}.
backupRegionstringOptional. Region where the backups are stored. Format: projects/{project_id}/locations/{location}
backupRetentionPolicyobjectOptional. Backup retention policy defining the retenton of backups. (id: BackupRetentionPolicy)
backupVaultTypestringOptional. Type of backup vault to be created. Default is IN_REGION.
createTimestring (google-datetime)Output only. Create time of the backup vault.
descriptionstringDescription of the backup vault.
destinationBackupVaultstringOutput only. Name of the Backup vault created in backup region. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}
labelsobjectResource labels to represent user provided metadata.
sourceBackupVaultstringOutput only. Name of the Backup vault created in source region. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}
sourceRegionstringOutput only. Region in which the backup vault is created. Format: projects/{project_id}/locations/{location}
statestringOutput only. The backup vault state.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, backupVaultsIdReturns the description of the specified backup vault
listselectprojectsId, locationsIdpageSize, pageToken, orderBy, filterReturns list of all available backup vaults.
createinsertprojectsId, locationsIdbackupVaultIdCreates new backup vault
patchupdateprojectsId, locationsId, backupVaultsIdupdateMaskUpdates the settings of a specific backup vault.
deletedeleteprojectsId, locationsId, backupVaultsIdWarning! This operation will permanently delete the backup vault.

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
backupVaultsIdstring
locationsIdstring
projectsIdstring
backupVaultIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Returns the description of the specified backup vault

SELECT
name,
backupRegion,
backupRetentionPolicy,
backupVaultType,
createTime,
description,
destinationBackupVault,
labels,
sourceBackupVault,
sourceRegion,
state
FROM google.netapp.backup_vaults
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND backupVaultsId = '{{ backupVaultsId }}' -- required;

INSERT examples

Creates new backup vault

INSERT INTO google.netapp.backup_vaults (
data__name,
data__description,
data__labels,
data__backupVaultType,
data__backupRegion,
data__backupRetentionPolicy,
projectsId,
locationsId,
backupVaultId
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ labels }}',
'{{ backupVaultType }}',
'{{ backupRegion }}',
'{{ backupRetentionPolicy }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ backupVaultId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the settings of a specific backup vault.

UPDATE google.netapp.backup_vaults
SET
data__name = '{{ name }}',
data__description = '{{ description }}',
data__labels = '{{ labels }}',
data__backupVaultType = '{{ backupVaultType }}',
data__backupRegion = '{{ backupRegion }}',
data__backupRetentionPolicy = '{{ backupRetentionPolicy }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND backupVaultsId = '{{ backupVaultsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Warning! This operation will permanently delete the backup vault.

DELETE FROM google.netapp.backup_vaults
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND backupVaultsId = '{{ backupVaultsId }}' --required;