Skip to main content

volume_group_backups

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

Overview​

Namevolume_group_backups
TypeResource
Idoci.block_storage.volume_group_backups

Fields​

The following fields are returned by SELECT queries:

The volume group backup was retrieved.

NameDatatypeDescription
idstringThe OCID of the volume group backup.
compartmentIdstringThe OCID of the compartment that contains the volume group backup.
definedTagsobjectDefined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm). Example: {"Operations": {"CostCenter": "42"}}
displayNamestringA user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
expirationTimestring (date-time)The date and time the volume group backup will expire and be automatically deleted. Format defined by [RFC3339](https:​//tools.ietf.org/html/rfc3339). This parameter will always be present for volume group backups that were created automatically by a scheduled-backup policy. For manually created volume group backups, it will be absent, signifying that there is no expiration time and the backup will last forever until manually deleted.
freeformTagsobjectFree-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"}
lifecycleStatestringThe current state of a volume group backup. (CREATING, COMMITTED, AVAILABLE, TERMINATING, TERMINATED, FAULTY, REQUEST_RECEIVED)
sizeInGBsinteger (int64)The aggregate size of the volume group backup, in GBs.
sizeInMBsinteger (int64)The aggregate size of the volume group backup, in MBs.
sourceTypestringSpecifies whether the volume group backup was created manually, or via scheduled backup policy. (MANUAL, SCHEDULED)
sourceVolumeGroupBackupIdstringThe OCID of the source volume group backup.
timeCreatedstring (date-time)The date and time the volume group backup was created. This is the time the actual point-in-time image of the volume group data was taken. Format defined by [RFC3339](https:​//tools.ietf.org/html/rfc3339).
timeRequestReceivedstring (date-time)The date and time the request to create the volume group backup was received. Format defined by [RFC3339](https:​//tools.ietf.org/html/rfc3339).
typestringThe type of backup. (FULL, INCREMENTAL)
uniqueSizeInGbsinteger (int64)The aggregate size used by the volume group backup, in GBs. It is typically smaller than sizeInGBs, depending on the spaceconsumed on the volume group and whether the volume backup is full or incremental.
uniqueSizeInMbsinteger (int64)The aggregate size used by the volume group backup, in MBs. It is typically smaller than sizeInMBs, depending on the spaceconsumed on the volume group and whether the volume backup is full or incremental.
volumeBackupIdsarrayOCIDs for the volume backups in this volume group backup.
volumeGroupIdstringThe OCID of the source volume group.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectvolumeGroupBackupId, regionGets information for the specified volume group backup. For more information, see [Volume Groups](/iaas/Content/Block/Concepts/volumegroups.htm).
listselectcompartmentId, regionvolumeGroupId, limit, page, displayName, sortBy, sortOrderLists the volume group backups in the specified compartment. You can filter the results by volume group.<br />For more information, see [Volume Groups](/iaas/Content/Block/Concepts/volumegroups.htm).<br />
createinsertregion, volumeGroupIdopc-retry-tokenCreates a new backup volume group of the specified volume group.<br />For more information, see [Volume Groups](/iaas/Content/Block/Concepts/volumegroups.htm).<br />
updateupdatevolumeGroupBackupId, regionif-matchUpdates the display name for the specified volume group backup. For more information, see [Volume Groups](/iaas/Content/Block/Concepts/volumegroups.htm).
deletedeletevolumeGroupBackupId, regionif-matchDeletes a volume group backup. This operation deletes all the backups in<br />the volume group. For more information, see [Volume Groups](/iaas/Content/Block/Concepts/volumegroups.htm).<br />
change_compartmentexecvolumeGroupBackupId, region, compartmentIdopc-request-idMoves a volume group backup into a different compartment within the same tenancy.<br />For information about moving resources between compartments,<br />see [Moving Resources to a Different Compartment](/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).<br />
copy_volume_group_backupexecvolumeGroupBackupId, region, destinationRegionopc-retry-token, opc-request-idCreates a volume group backup copy in specified region. For general information about volume group backups,<br />see [Overview of Block Volume Backups](/iaas/Content/Block/Concepts/blockvolumebackups.htm).<br />

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
compartmentIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)
volumeGroupBackupIdstringThe Oracle Cloud ID (OCID) that uniquely identifies the volume group backup.
displayNamestringA filter to return only resources that match the given display name exactly.
if-matchstringFor optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
limitintegerFor list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). Example: 50
opc-request-idstringUnique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
opc-retry-tokenstringA token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
pagestringFor list pagination. The value of the opc-next-page response header from the previous "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine).
sortBystringThe field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. Note: In general, some "List" operations (for example, ListInstances) let you optionally filter by availability domain if the scope of the resource type is within a single availability domain. If you call one of these "List" operations without specifying an availability domain, the resources are grouped by availability domain, then sorted.
sortOrderstringThe sort order to use, either ascending (ASC) or descending (DESC). The DISPLAYNAME sort order is case sensitive.
volumeGroupIdstringThe OCID of the volume group.

SELECT examples​

Gets information for the specified volume group backup. For more information, see Volume Groups.

SELECT
id,
compartmentId,
definedTags,
displayName,
expirationTime,
freeformTags,
lifecycleState,
sizeInGBs,
sizeInMBs,
sourceType,
sourceVolumeGroupBackupId,
timeCreated,
timeRequestReceived,
type,
uniqueSizeInGbs,
uniqueSizeInMbs,
volumeBackupIds,
volumeGroupId
FROM oci.block_storage.volume_group_backups
WHERE volumeGroupBackupId = '{{ volumeGroupBackupId }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples​

Creates a new backup volume group of the specified volume group.<br />For more information, see [Volume Groups](/iaas/Content/Block/Concepts/volumegroups.htm).<br />

INSERT INTO oci.block_storage.volume_group_backups (
compartmentId,
definedTags,
displayName,
freeformTags,
type,
volumeGroupId,
region,
opc-retry-token
)
SELECT
'{{ compartmentId }}',
'{{ definedTags }}',
'{{ displayName }}',
'{{ freeformTags }}',
'{{ type }}',
'{{ volumeGroupId }}' /* required */,
'{{ region }}',
'{{ opc-retry-token }}'
RETURNING
id,
compartmentId,
definedTags,
displayName,
expirationTime,
freeformTags,
lifecycleState,
sizeInGBs,
sizeInMBs,
sourceType,
sourceVolumeGroupBackupId,
timeCreated,
timeRequestReceived,
type,
uniqueSizeInGbs,
uniqueSizeInMbs,
volumeBackupIds,
volumeGroupId
;

UPDATE examples​

Updates the display name for the specified volume group backup. For more information, see Volume Groups.

UPDATE oci.block_storage.volume_group_backups
SET
definedTags = '{{ definedTags }}',
displayName = '{{ displayName }}',
freeformTags = '{{ freeformTags }}'
WHERE
volumeGroupBackupId = '{{ volumeGroupBackupId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match}}'
RETURNING
id,
compartmentId,
definedTags,
displayName,
expirationTime,
freeformTags,
lifecycleState,
sizeInGBs,
sizeInMBs,
sourceType,
sourceVolumeGroupBackupId,
timeCreated,
timeRequestReceived,
type,
uniqueSizeInGbs,
uniqueSizeInMbs,
volumeBackupIds,
volumeGroupId;

DELETE examples​

Deletes a volume group backup. This operation deletes all the backups in<br />the volume group. For more information, see [Volume Groups](/iaas/Content/Block/Concepts/volumegroups.htm).<br />

DELETE FROM oci.block_storage.volume_group_backups
WHERE volumeGroupBackupId = '{{ volumeGroupBackupId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match }}'
;

Lifecycle Methods​

Moves a volume group backup into a different compartment within the same tenancy.<br />For information about moving resources between compartments,<br />see [Moving Resources to a Different Compartment](/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).<br />

EXEC oci.block_storage.volume_group_backups.change_compartment
@volumeGroupBackupId='{{ volumeGroupBackupId }}' --required,
@region='{{ region }}' --required,
@opc-request-id='{{ opc-request-id }}'
@@json=
'{
"compartmentId": "{{ compartmentId }}"
}'
;