openstack_aggregateopenstack_application_credentialopenstack_availability_zoneopenstack_compute_imageopenstack_domainopenstack_fipopenstack_groupopenstack_hypervisoropenstack_keypairopenstack_networkopenstack_portopenstack_projectopenstack_roleopenstack_role_assignmentopenstack_routeropenstack_security_groupopenstack_security_group_ruleopenstack_serveropenstack_server_groupopenstack_snapshotopenstack_subnetopenstack_useropenstack_volumeopenstack_volume_type
Table: openstack_snapshot
A snapshot is the backup of a volume.
Examples
Basic snapshot info
select id, name, description, created_at, updated_at, volume_id, status, sizefrom openstack_snapshot;
Snapshot by ID
select id, name, description, created_at, updated_at, volume_id, status, sizefrom openstack_snapshotwhere id = '91f4432d-5da5-475d-84b9-c68789dddb70';
All snapshots bigger than 1 GB
select id, name, description, created_at, updated_at, volume_id, status, sizefrom openstack_snapshotwhere size > 1;
All available snapshots
select id, name, description, created_at, updated_at, volume_id, status, sizefrom openstack_snapshotwhere status = 'available';
All snapshots not updated in the last 14 days
select id, name, description, created_at, updated_at, volume_id, status, sizefrom openstack_snapshotwhere date_part( 'day', current_date :: timestamp - updated_at :: timestamp ) >= 14;
Schema for openstack_snapshot
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form, e.g. connection_name. | |
created_at | timestamp with time zone | The date when this snapshot was last updated. | |
description | text | Human-readable description for the snapshot. | |
id | text | = | Unique identifier. |
metadata | text | User-defined key-value pairs. | |
name | text | Human-readable display name for the snapshot. | |
size | bigint | Size of the snapshot in GB. | |
status | text | Current status of the snapshot. | |
updated_at | timestamp with time zone | The date when this snapshot was created. | |
volume_id | text | ID of the Volume from which this Snapshot was created. |