Skip to content

openstack-flavor: add page #17618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions pages/common/openstack-flavor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# openstack flavor

> Manage OpenStack instance flavors (virtual hardware templates).
> More information: <https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/flavor.html>.

- List all flavors:

`openstack flavor list`

- Show details of a flavor:

`openstack flavor show {{flavor_id_or_name}}`

- Create a new flavor with 2 vCPUs, 4GB RAM, and 20GB disk:

`openstack flavor create {{flavor_name}} --vcpus 2 --ram 4096 --disk 20`

- Delete a flavor:

`openstack flavor delete {{flavor_id_or_name}}`

- Create a flavor with 10GB ephemeral disk and 512MB swap space:

`openstack flavor create {{flavor_name}} --vcpus 4 --ram 8192 --disk 40 --ephemeral 10 --swap 512`