Skip to content

Instance snapshots CLI reference

See https://docs.openstack.org/nova/2023.2/cli/index.html.

These commands allow you to create, list, show details of, and delete instance snapshots, as well as create new instances from existing snapshots.

Create an instance snapshot

Bash
openstack server image create --name <snapshot_name> <server_id_or_name>
  • <snapshot_name>: Name of the snapshot.
  • <server_id_or_name>: ID or name of the instance to snapshot.

List snapshots (images)

Bash
openstack image list
  • This command lists all images, including snapshots (you can identify snapshots by their names or other metadata)

Show snapshot details

Bash
openstack image show <snapshot_id_or_name>
  • <snapshot_id_or_name>: ID or name of the snapshot.

Delete a snapshot

Bash
openstack image delete <snapshot_id_or_name>

Create an instance from a snapshot

Bash
openstack server create --image <snapshot_id_or_name> --flavor <flavor_id_or_name> <new_server_name>
  • <snapshot_id_or_name>: ID or name of the snapshot to use as the image
  • <flavor_id_or_name>: ID or name of the flavor for the new instance
  • <new_server_name>: Name of the new instance