boot_volume_backups
Creates, updates, deletes, gets or lists a boot_volume_backups resource.
Overview​
| Name | boot_volume_backups |
| Type | Resource |
| Id | oci.block_storage.boot_volume_backups |
Fields​
The following fields are returned by SELECT queries:
- get
- list
The boot volume backup was retrieved.
| Name | Datatype | Description |
|---|---|---|
id | string | The OCID of the boot volume backup. |
bootVolumeId | string | The OCID of the boot volume. |
compartmentId | string | The OCID of the compartment that contains the boot volume backup. |
definedTags | object | Defined 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"}} |
displayName | string | A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. |
expirationTime | string (date-time) | The date and time the volume backup will expire and be automatically deleted. Format defined by [RFC3339](https:​//tools.ietf.org/html/rfc3339). This parameter will always be present for backups that were created automatically by a scheduled-backup policy. For manually created backups, it will be absent, signifying that there is no expiration time and the backup will last forever until manually deleted. |
freeformTags | object | Free-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"} |
imageId | string | The image OCID used to create the boot volume the backup is taken from. |
kmsKeyId | string | The OCID of the Vault service master encryption assigned to the boot volume backup. For more information about the Vault service and encryption keys, see [Overview of Vault service](/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and [Using Keys](/iaas/Content/KeyManagement/Tasks/usingkeys.htm). |
lifecycleState | string | The current state of a boot volume backup. (CREATING, AVAILABLE, TERMINATING, TERMINATED, FAULTY, REQUEST_RECEIVED) |
sizeInGBs | integer (int64) | The size of the boot volume, in GBs. |
sourceBootVolumeBackupId | string | The OCID of the source boot volume backup. |
sourceType | string | Specifies whether the backup was created manually, or via scheduled backup policy. (MANUAL, SCHEDULED) |
timeCreated | string (date-time) | The date and time the boot volume backup was created. This is the time the actual point-in-time image of the volume data was taken. Format defined by [RFC3339](https:​//tools.ietf.org/html/rfc3339). |
timeRequestReceived | string (date-time) | The date and time the request to create the boot volume backup was received. Format defined by [RFC3339](https:​//tools.ietf.org/html/rfc3339). |
type | string | The type of a volume backup. (FULL, INCREMENTAL) |
uniqueSizeInGBs | integer (int64) | The size used by the backup, in GBs. It is typically smaller than sizeInGBs, depending on the space consumed on the boot volume and whether the backup is full or incremental. |
A point-in-time copy of a boot volume that can then be used to create<br />a new boot volume or recover a boot volume. For more information, see [Overview<br />of Boot Volume Backups](/iaas/Content/Block/Concepts/bootvolumebackups.htm)<br />To use any of the API operations, you must be authorized in an IAM policy.<br />If you're not authorized, talk to an administrator. If you're an administrator<br />who needs to write policies to give users access, see [Getting Started with<br />Policies](/iaas/Content/Identity/Concepts/policygetstarted.htm).<br /><br />Warning: Oracle recommends that you avoid using any confidential information when you<br />supply string values using the API.<br />
| Name | Datatype | Description |
|---|---|---|
id | string | The OCID of the boot volume backup. |
bootVolumeId | string | The OCID of the boot volume. |
compartmentId | string | The OCID of the compartment that contains the boot volume backup. |
definedTags | object | Defined 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"}} |
displayName | string | A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. |
expirationTime | string (date-time) | The date and time the volume backup will expire and be automatically deleted. Format defined by [RFC3339](https:​//tools.ietf.org/html/rfc3339). This parameter will always be present for backups that were created automatically by a scheduled-backup policy. For manually created backups, it will be absent, signifying that there is no expiration time and the backup will last forever until manually deleted. |
freeformTags | object | Free-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"} |
imageId | string | The image OCID used to create the boot volume the backup is taken from. |
kmsKeyId | string | The OCID of the Vault service master encryption assigned to the boot volume backup. For more information about the Vault service and encryption keys, see [Overview of Vault service](/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and [Using Keys](/iaas/Content/KeyManagement/Tasks/usingkeys.htm). |
lifecycleState | string | The current state of a boot volume backup. (CREATING, AVAILABLE, TERMINATING, TERMINATED, FAULTY, REQUEST_RECEIVED) |
sizeInGBs | integer (int64) | The size of the boot volume, in GBs. |
sourceBootVolumeBackupId | string | The OCID of the source boot volume backup. |
sourceType | string | Specifies whether the backup was created manually, or via scheduled backup policy. (MANUAL, SCHEDULED) |
timeCreated | string (date-time) | The date and time the boot volume backup was created. This is the time the actual point-in-time image of the volume data was taken. Format defined by [RFC3339](https:​//tools.ietf.org/html/rfc3339). |
timeRequestReceived | string (date-time) | The date and time the request to create the boot volume backup was received. Format defined by [RFC3339](https:​//tools.ietf.org/html/rfc3339). |
type | string | The type of a volume backup. (FULL, INCREMENTAL) |
uniqueSizeInGBs | integer (int64) | The size used by the backup, in GBs. It is typically smaller than sizeInGBs, depending on the space consumed on the boot volume and whether the backup is full or incremental. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | bootVolumeBackupId, region | Gets information for the specified boot volume backup. | |
list | select | compartmentId, region | bootVolumeId, limit, page, displayName, sourceBootVolumeBackupId, sortBy, sortOrder, lifecycleState | Lists the boot volume backups in the specified compartment. You can filter the results by boot volume.<br /> |
create | insert | region, bootVolumeId | opc-retry-token | Creates a new boot volume backup of the specified boot volume. For general information about boot volume backups,<br />see [Overview of Boot Volume Backups](/iaas/Content/Block/Concepts/bootvolumebackups.htm)<br /><br />When the request is received, the backup object is in a REQUEST_RECEIVED state.<br />When the data is imaged, it goes into a CREATING state.<br />After the backup is fully uploaded to the cloud, it goes into an AVAILABLE state.<br /> |
update | update | bootVolumeBackupId, region | if-match | Updates the display name for the specified boot volume backup.<br />Avoid entering confidential information.<br /> |
delete | delete | bootVolumeBackupId, region | if-match | Deletes a boot volume backup. |
change_compartment | exec | bootVolumeBackupId, region, compartmentId | opc-request-id | Moves a boot volume 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_boot_volume_backup | exec | bootVolumeBackupId, region, destinationRegion | opc-retry-token, opc-request-id | Creates a boot volume backup copy in specified region. For general information about volume backups,<br />see [Overview of Boot Volume Backups](/iaas/Content/Block/Concepts/bootvolumebackups.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.
| Name | Datatype | Description |
|---|---|---|
bootVolumeBackupId | string | The OCID of the boot volume backup. |
compartmentId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment. |
region | string | OCI 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) |
bootVolumeId | string | The OCID of the boot volume. |
displayName | string | A filter to return only resources that match the given display name exactly. |
if-match | string | For 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. |
lifecycleState | string | A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. |
limit | integer | For 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-id | string | Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. |
opc-retry-token | string | A 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). |
page | string | For 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). |
sortBy | string | The 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. |
sortOrder | string | The sort order to use, either ascending (ASC) or descending (DESC). The DISPLAYNAME sort order is case sensitive. |
sourceBootVolumeBackupId | string | A filter to return only resources that originated from the given source boot volume backup. |
SELECT examples​
- get
- list
Gets information for the specified boot volume backup.
SELECT
id,
bootVolumeId,
compartmentId,
definedTags,
displayName,
expirationTime,
freeformTags,
imageId,
kmsKeyId,
lifecycleState,
sizeInGBs,
sourceBootVolumeBackupId,
sourceType,
timeCreated,
timeRequestReceived,
type,
uniqueSizeInGBs
FROM oci.block_storage.boot_volume_backups
WHERE bootVolumeBackupId = '{{ bootVolumeBackupId }}' -- required
AND region = '{{ region }}' -- required
;
Lists the boot volume backups in the specified compartment. You can filter the results by boot volume.<br />
SELECT
id,
bootVolumeId,
compartmentId,
definedTags,
displayName,
expirationTime,
freeformTags,
imageId,
kmsKeyId,
lifecycleState,
sizeInGBs,
sourceBootVolumeBackupId,
sourceType,
timeCreated,
timeRequestReceived,
type,
uniqueSizeInGBs
FROM oci.block_storage.boot_volume_backups
WHERE compartmentId = '{{ compartmentId }}' -- required
AND region = '{{ region }}' -- required
AND bootVolumeId = '{{ bootVolumeId }}'
AND limit = '{{ limit }}'
AND page = '{{ page }}'
AND displayName = '{{ displayName }}'
AND sourceBootVolumeBackupId = '{{ sourceBootVolumeBackupId }}'
AND sortBy = '{{ sortBy }}'
AND sortOrder = '{{ sortOrder }}'
AND lifecycleState = '{{ lifecycleState }}'
;
INSERT examples​
- create
- Manifest
Creates a new boot volume backup of the specified boot volume. For general information about boot volume backups,<br />see [Overview of Boot Volume Backups](/iaas/Content/Block/Concepts/bootvolumebackups.htm)<br /><br />When the request is received, the backup object is in a REQUEST_RECEIVED state.<br />When the data is imaged, it goes into a CREATING state.<br />After the backup is fully uploaded to the cloud, it goes into an AVAILABLE state.<br />
INSERT INTO oci.block_storage.boot_volume_backups (
bootVolumeId,
definedTags,
displayName,
freeformTags,
kmsKeyId,
type,
region,
opc-retry-token
)
SELECT
'{{ bootVolumeId }}' /* required */,
'{{ definedTags }}',
'{{ displayName }}',
'{{ freeformTags }}',
'{{ kmsKeyId }}',
'{{ type }}',
'{{ region }}',
'{{ opc-retry-token }}'
RETURNING
id,
bootVolumeId,
compartmentId,
definedTags,
displayName,
expirationTime,
freeformTags,
imageId,
kmsKeyId,
lifecycleState,
sizeInGBs,
sourceBootVolumeBackupId,
sourceType,
timeCreated,
timeRequestReceived,
type,
uniqueSizeInGBs
;
# Description fields are for documentation purposes
- name: boot_volume_backups
props:
- name: region
value: "{{ region }}"
description: Required parameter for the boot_volume_backups resource.
- name: bootVolumeId
value: "{{ bootVolumeId }}"
description: |
The OCID of the boot volume that needs to be backed up.
- name: definedTags
value: "{{ definedTags }}"
description: |
Defined 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"}}`
- name: displayName
value: "{{ displayName }}"
description: |
A user-friendly name. Does not have to be unique, and it's changeable.
Avoid entering confidential information.
- name: freeformTags
value: "{{ freeformTags }}"
description: |
Free-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"}`
- name: kmsKeyId
value: "{{ kmsKeyId }}"
description: |
The OCID of the Vault service key which is the master encryption key for the volume backup.
For more information about the Vault service and encryption keys, see
[Overview of Vault service](/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and
[Using Keys](/iaas/Content/KeyManagement/Tasks/usingkeys.htm).
- name: type
value: "{{ type }}"
description: |
The type of backup to create. If omitted, defaults to incremental.
valid_values: ['FULL', 'INCREMENTAL']
- name: opc-retry-token
value: "{{ opc-retry-token }}"
description: A 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).
description: A 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).
UPDATE examples​
- update
Updates the display name for the specified boot volume backup.<br />Avoid entering confidential information.<br />
UPDATE oci.block_storage.boot_volume_backups
SET
definedTags = '{{ definedTags }}',
displayName = '{{ displayName }}',
freeformTags = '{{ freeformTags }}',
kmsKeyId = '{{ kmsKeyId }}'
WHERE
bootVolumeBackupId = '{{ bootVolumeBackupId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match}}'
RETURNING
id,
bootVolumeId,
compartmentId,
definedTags,
displayName,
expirationTime,
freeformTags,
imageId,
kmsKeyId,
lifecycleState,
sizeInGBs,
sourceBootVolumeBackupId,
sourceType,
timeCreated,
timeRequestReceived,
type,
uniqueSizeInGBs;
DELETE examples​
- delete
Deletes a boot volume backup.
DELETE FROM oci.block_storage.boot_volume_backups
WHERE bootVolumeBackupId = '{{ bootVolumeBackupId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match }}'
;
Lifecycle Methods​
- change_compartment
- copy_boot_volume_backup
Moves a boot volume 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.boot_volume_backups.change_compartment
@bootVolumeBackupId='{{ bootVolumeBackupId }}' --required,
@region='{{ region }}' --required,
@opc-request-id='{{ opc-request-id }}'
@@json=
'{
"compartmentId": "{{ compartmentId }}"
}'
;
Creates a boot volume backup copy in specified region. For general information about volume backups,<br />see [Overview of Boot Volume Backups](/iaas/Content/Block/Concepts/bootvolumebackups.htm)<br />
EXEC oci.block_storage.boot_volume_backups.copy_boot_volume_backup
@bootVolumeBackupId='{{ bootVolumeBackupId }}' --required,
@region='{{ region }}' --required,
@opc-retry-token='{{ opc-retry-token }}',
@opc-request-id='{{ opc-request-id }}'
@@json=
'{
"destinationRegion": "{{ destinationRegion }}",
"displayName": "{{ displayName }}",
"kmsKeyId": "{{ kmsKeyId }}"
}'
;