Listing Boot Volume Attachments
Learn how to list attachments for a boot volume.
Required IAM Policy
To use Oracle Cloud Infrastructure, an administrator must be a member of a group granted security access in a policy by a tenancy administrator. This access is required whether you're using the Console or the REST API with an SDK, CLI, or other tool. If you get a message that you don't have permission or are unauthorized, verify with the tenancy administrator what type of access you have and which compartment your access works in.
For administrators: The policy in Let users launch compute instances includes the ability to list volume attachments. The policy in Let volume admins manage block volumes, backups, and volume groups lets the specified group do everything with block volumes and backups, but not launch instances.
- Open the navigation menu and select Storage. Under Block Storage, select Block Volumes. In the Block Storage menu on the sidebar, select Boot Volumes.
-
Choose your Compartment.
-
Select the boot volume that you want to view the attached instances for.
-
In the Resources section, select Attached Instances.
Use the
oci compute boot-volume-attachment list
command and specify the--availabilty-domain
and--compartment-id
parameters to view the boot volumes in that availability domain and compartment:oci compute boot-volume-attachment list
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the
ListBootVolumeAttachments
operation and specify theavailabilityDomain
andcompartmentId
attributes to list boot volume attachments in a compartment.