ernw/openstack
steampipe plugin install ernw/openstack

Table: openstack_volume

A volume is a virtual disk that holds data. Volumes can be attached to instances.

Examples

Basic volume info

select
id,
name,
description,
status,
size,
availability_zone,
updated_at,
created_at,
attached_at,
attachment_id,
device,
host_name,
bootable,
encrypted
from
openstack_volume;

Volume by ID

select
id,
name,
description,
status,
size,
availability_zone,
updated_at,
created_at,
attached_at,
attachment_id,
device,
host_name,
bootable,
encrypted
from
openstack_volume
where
id = 'f52d0d12-99b9-4c91-8f21-04b2a5b12a1e';

All bootable volumes bigger than 10 GB

select
id,
name,
description,
status,
size,
availability_zone,
updated_at,
created_at,
attached_at,
attachment_id,
device,
host_name,
bootable,
encrypted
from
openstack_volume
where
size > 10;

All bootable volumes

select
id,
name,
description,
status,
size,
availability_zone,
updated_at,
created_at,
attached_at,
attachment_id,
device,
host_name,
bootable,
encrypted
from
openstack_volume
where
bootable = true;

All encrypted volumes

select
id,
name,
description,
status,
size,
availability_zone,
updated_at,
created_at,
attached_at,
attachment_id,
device,
host_name,
bootable,
encrypted
from
openstack_volume
where
encrypted = true;

Volumes created in the last 30 days

select
id,
name,
description,
status,
size,
availability_zone,
updated_at,
created_at,
attached_at,
attachment_id,
device,
host_name,
bootable,
encrypted
from
openstack_volume
where
date_part(
'day',
current_date :: timestamp - created_at :: timestamp
) <= 30;

Volumes not updated in the last 90 days

select
id,
name,
description,
status,
size,
availability_zone,
updated_at,
created_at,
attached_at,
attachment_id,
device,
host_name,
bootable,
encrypted
from
openstack_volume
where
date_part(
'day',
current_date :: timestamp - updated_at :: timestamp
) >= 90;

Schema for openstack_volume

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
attached_attimestamp with time zoneAttachedAt is the time the attachment was created.
attachment_idtextID is the Unique identifier for the attachment.
availability_zonetextAvailabilityZone is which availability zone the volume is in.
backup_idtextThe backup ID, from which the volume was restored. This field is supported since 3.47 microversion.
bootablebooleanIndicates whether this is a bootable volume.
consistency_group_idtextConsistencyGroupID is the consistency group ID.
created_attimestamp with time zoneThe date when this volume was last updated.
descriptiontextHuman-readable description for the volume.
devicetextName of the attached device.
encryptedbooleanEncrypted denotes if the volume is encrypted.
host_nametextAttachment Hostname.
idtext=Unique identifier for the volume.
metadatajsonbArbitrary key-value pairs defined by the user.
multiattachbooleanMultiattach denotes if the volume is multi-attach capable.
nametextHuman-readable display name for the volume.
replication_statustextReplicationStatus is the status of replication.
server_idtextServerID is the Server UUID associated with this attachment.
sizebigintSize of the volume in GB.
snapshot_idtextThe ID of the snapshot from which the volume was created.
source_vol_idtextThe ID of another block storage volume from which the current volume was created.
statustextCurrent status of the volume.
updated_attimestamp with time zoneThe date when this volume was created.
user_idtextUserID is the id of the user who created the volume.
volume_image_metadatajsonbImage metadata entries, only included for volumes that were created from an image, or from a snapshot of a volume originally created from an image.
volume_typetextThe type of volume to create, either SATA or SSD.