diff --git a/docs/openstack-images.md b/docs/openstack-images.md new file mode 100644 index 00000000..6cc09e9f --- /dev/null +++ b/docs/openstack-images.md @@ -0,0 +1,64 @@ +# Openstack Images + +To read more about Openstack images please visit the [upstream docs](https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/image-v1.html#image-create). + +#### List and view images + +``` shell +openstack image list + [--sort-column SORT_COLUMN] + [--sort-ascending | --sort-descending] + [--public | --private] + [--property ] + [--long] + [--sort [:]] +``` + +#### View image details + +``` shell +openstack image show +``` + +#### Create a image + +``` shell +openstack image create + [--id ] + [--store ] + [--container-format ] + [--disk-format ] + [--size ] + [--min-disk ] + [--min-ram ] + [--location ] + [--copy-from ] + [--file | --volume ] + [--force] + [--checksum ] + [--protected | --unprotected] + [--public | --private] + [--property ] + [--project ] + +``` + +#### Delete a image + +``` shell +openstack image delete [ ...] +``` + +#### Retrieving Images + +Please visit this page for examples of retrieving images [here](https://docs.openstack.org/image-guide/obtain-images.html). + +#### Creating a server from an image + +Specify the server name, flavor ID, and image ID. + +``` shell +openstack server create --flavor FLAVOR_ID --image IMAGE_ID --key-name KEY_NAME \ + --user-data USER_DATA_FILE --security-group SEC_GROUP_NAME --property KEY=VALUE \ + INSTANCE_NAME +``` diff --git a/mkdocs.yml b/mkdocs.yml index c761b7f5..7d44579d 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -224,4 +224,5 @@ nav: - Openstack Floating Ips: openstack-floating-ips.md - Openstack Keypairs: openstack-keypairs.md - Openstack Servers: openstack-servers.md + - Openstack Images: openstack-images.md - Openstack Swift: storage-swift-object-store.md