Listing Block Volume Attachments
On Compute Cloud@Customer, you can list all Block Volume volume attachments in a specific compartment, and detailed information for a single volume attachment.
-
In the Compute Cloud@Customer Console navigation menu, select Compute, then select Instances.
-
At the top of the page, select the compartment that contains the instance that has the attached block volume.
-
Select the instance name to display the details.
-
Under Resources, select Attached Block Volumes.
Block volumes that are attached to this instance are listed in the table.
-
To see details for a block volume, select the block volume name.
-
Use these commands to list volume attachments:
-
Use xx to list all volume attachments in a compartment:
oci compute volume-attachment list --compartment-id <compartment_OCID> [OPTIONS]
-
Use xx to list the details of a single volume attachment:
oci compute volume-attachment list --volume-id <volume_OCID> [OPTIONS]
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
-
Use these APIs:
- List all volume attachments in a compartment: ListVolumeAttachments
- List the details for a single volume attachment: GetVolumeAttachment
For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.