Skip to main content

boot_volumes

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

Overview​

Nameboot_volumes
TypeResource
Idoci.block_storage.boot_volumes

Fields​

The following fields are returned by SELECT queries:

The boot volume's information has been retrieved.

NameDatatypeDescription
idstringThe boot volume's Oracle ID (OCID).
autoTunedVpusPerGBinteger (int64)The number of Volume Performance Units per GB that this boot volume is effectively tuned to.
autotunePoliciesarrayThe list of autotune policies enabled for this volume.
availabilityDomainstringThe availability domain of the boot volume. Example: Uocm:PHX-AD-1
bootVolumeReplicasarrayThe list of boot volume replicas of this boot volume
clusterPlacementGroupIdstringThe clusterPlacementGroup Id of the volume for volume placement.
compartmentIdstringThe OCID of the compartment that contains the boot volume.
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.
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"}
imageIdstringThe image OCID used to create the boot volume.
isAutoTuneEnabledbooleanSpecifies whether the auto-tune performance is enabled for this boot volume. This field is deprecated. Use the DetachedVolumeAutotunePolicy instead to enable the volume for detached autotune.
isHydratedbooleanSpecifies whether the boot volume's data has finished copying from the source boot volume or boot volume backup.
kmsKeyIdstringThe OCID of the Vault service master encryption key assigned to the boot volume.
lifecycleStatestringThe current state of a boot volume. (PROVISIONING, RESTORING, AVAILABLE, TERMINATING, TERMINATED, FAULTY)
sizeInGBsinteger (int64)The size of the boot volume in GBs.
sizeInMBsinteger (int64)The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Please use sizeInGBs.
sourceDetailsobject
timeCreatedstring (date-time)The date and time the boot volume was created. Format defined by [RFC3339](https:​//tools.ietf.org/html/rfc3339).
volumeGroupIdstringThe OCID of the source volume group.
vpusPerGBinteger (int64)The number of volume performance units (VPUs) that will be applied to this boot volume per GB, representing the Block Volume service's elastic performance options. See [Block Volume Performance Levels](/iaas/Content/Block/Concepts/blockvolumeperformance.htm#perf_levels) for more information. Allowed values: * 10: Represents Balanced option. * 20: Represents Higher Performance option. * 30-120: Represents the Ultra High Performance option. For performance autotune enabled volumes, it would be the Default(Minimum) VPUs/GB.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbootVolumeId, regionGets information for the specified boot volume.
listselectavailabilityDomain, compartmentId, regionlimit, page, volumeGroupIdLists the boot volumes in the specified compartment and availability domain.<br />
createinsertregion, compartmentId, sourceDetailsopc-retry-tokenCreates a new boot volume in the specified compartment from an existing boot volume or a boot volume backup.<br />For general information about boot volumes, see [Boot Volumes](/iaas/Content/Block/Concepts/bootvolumes.htm).<br />You may optionally specify a display name for the volume, which is simply a friendly name or<br />description. It does not have to be unique, and you can change it. Avoid entering confidential information.<br />
updateupdatebootVolumeId, regionif-matchUpdates the specified boot volume's display name, defined tags, and free-form tags.
deletedeletebootVolumeId, regionif-matchDeletes the specified boot volume. The volume cannot have an active connection to an instance.<br />To disconnect the boot volume from a connected instance, see<br />[Disconnecting From a Boot Volume](/iaas/Content/Block/Tasks/deletingbootvolume.htm).<br />Warning: All data on the boot volume will be permanently lost when the boot volume is deleted.<br />
change_compartmentexecbootVolumeId, region, compartmentIdopc-request-idMoves a boot volume 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 />

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
availabilityDomainstringThe name of the availability domain. Example: Uocm:PHX-AD-1
bootVolumeIdstringThe OCID of the boot volume.
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)
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).
volumeGroupIdstringThe OCID of the volume group.

SELECT examples​

Gets information for the specified boot volume.

SELECT
id,
autoTunedVpusPerGB,
autotunePolicies,
availabilityDomain,
bootVolumeReplicas,
clusterPlacementGroupId,
compartmentId,
definedTags,
displayName,
freeformTags,
imageId,
isAutoTuneEnabled,
isHydrated,
kmsKeyId,
lifecycleState,
sizeInGBs,
sizeInMBs,
sourceDetails,
timeCreated,
volumeGroupId,
vpusPerGB
FROM oci.block_storage.boot_volumes
WHERE bootVolumeId = '{{ bootVolumeId }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples​

Creates a new boot volume in the specified compartment from an existing boot volume or a boot volume backup.<br />For general information about boot volumes, see [Boot Volumes](/iaas/Content/Block/Concepts/bootvolumes.htm).<br />You may optionally specify a display name for the volume, which is simply a friendly name or<br />description. It does not have to be unique, and you can change it. Avoid entering confidential information.<br />

INSERT INTO oci.block_storage.boot_volumes (
autotunePolicies,
availabilityDomain,
bootVolumeReplicas,
clusterPlacementGroupId,
compartmentId,
definedTags,
displayName,
freeformTags,
isAutoTuneEnabled,
kmsKeyId,
sizeInGBs,
sourceDetails,
vpusPerGB,
region,
opc-retry-token
)
SELECT
'{{ autotunePolicies }}',
'{{ availabilityDomain }}',
'{{ bootVolumeReplicas }}',
'{{ clusterPlacementGroupId }}',
'{{ compartmentId }}' /* required */,
'{{ definedTags }}',
'{{ displayName }}',
'{{ freeformTags }}',
{{ isAutoTuneEnabled }},
'{{ kmsKeyId }}',
{{ sizeInGBs }},
'{{ sourceDetails }}' /* required */,
{{ vpusPerGB }},
'{{ region }}',
'{{ opc-retry-token }}'
RETURNING
id,
autoTunedVpusPerGB,
autotunePolicies,
availabilityDomain,
bootVolumeReplicas,
clusterPlacementGroupId,
compartmentId,
definedTags,
displayName,
freeformTags,
imageId,
isAutoTuneEnabled,
isHydrated,
kmsKeyId,
lifecycleState,
sizeInGBs,
sizeInMBs,
sourceDetails,
timeCreated,
volumeGroupId,
vpusPerGB
;

UPDATE examples​

Updates the specified boot volume's display name, defined tags, and free-form tags.

UPDATE oci.block_storage.boot_volumes
SET
autotunePolicies = '{{ autotunePolicies }}',
bootVolumeReplicas = '{{ bootVolumeReplicas }}',
definedTags = '{{ definedTags }}',
displayName = '{{ displayName }}',
freeformTags = '{{ freeformTags }}',
isAutoTuneEnabled = {{ isAutoTuneEnabled }},
sizeInGBs = {{ sizeInGBs }},
vpusPerGB = {{ vpusPerGB }}
WHERE
bootVolumeId = '{{ bootVolumeId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match}}'
RETURNING
id,
autoTunedVpusPerGB,
autotunePolicies,
availabilityDomain,
bootVolumeReplicas,
clusterPlacementGroupId,
compartmentId,
definedTags,
displayName,
freeformTags,
imageId,
isAutoTuneEnabled,
isHydrated,
kmsKeyId,
lifecycleState,
sizeInGBs,
sizeInMBs,
sourceDetails,
timeCreated,
volumeGroupId,
vpusPerGB;

DELETE examples​

Deletes the specified boot volume. The volume cannot have an active connection to an instance.<br />To disconnect the boot volume from a connected instance, see<br />[Disconnecting From a Boot Volume](/iaas/Content/Block/Tasks/deletingbootvolume.htm).<br />Warning: All data on the boot volume will be permanently lost when the boot volume is deleted.<br />

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

Lifecycle Methods​

Moves a boot volume 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_volumes.change_compartment
@bootVolumeId='{{ bootVolumeId }}' --required,
@region='{{ region }}' --required,
@opc-request-id='{{ opc-request-id }}'
@@json=
'{
"compartmentId": "{{ compartmentId }}"
}'
;