.. _Managing Flavors: Managing Flavors ---------------- .. _vinfra service compute flavor create: vinfra service compute flavor create ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Create a new compute flavor: :: usage: vinfra service compute flavor create [--swap ] --vcpus --ram ``--swap `` Swap space size, in megabytes ``--vcpus `` Number of virtual CPUs ``--ram `` Memory size, in megabytes ```` Flavor name Example: :: # vinfra service compute flavor create myflavor --vcpus 1 --ram 3072 +-------+--------------------------------------+ | Field | Value | +-------+--------------------------------------+ | id | 561a48ea-0c1c-4152-8b7d-e4b4af276c2d | | name | myflavor | | ram | 3072 | | swap | 0 | | vcpus | 1 | +-------+--------------------------------------+ This command creates a flavor ``myflavor`` with 1 vCPU and 3 GB RAM. .. _vinfra service compute flavor list: vinfra service compute flavor list ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ List compute flavors: :: usage: vinfra service compute flavor list Example: :: # vinfra service compute flavor list +--------------------------------------+----------+-------+------+-------+ | id | name | ram | swap | vcpus | +--------------------------------------+----------+-------+------+-------+ | 100 | tiny | 512 | 0 | 1 | | 101 | small | 2048 | 0 | 1 | | 102 | medium | 4096 | 0 | 2 | | 103 | large | 8192 | 0 | 4 | | 104 | xlarge | 16384 | 0 | 8 | | 561a48ea-0c1c-4152-8b7d-e4b4af276c2d | myflavor | 3072 | 0 | 1 | +--------------------------------------+----------+-------+------+-------+ This command lists all flavors. .. _vinfra service compute flavor show: vinfra service compute flavor show ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Display compute flavor details: :: usage: vinfra service compute flavor show ```` Flavor ID or name Example: :: # vinfra service compute flavor show myflavor +-------+--------------------------------------+ | Field | Value | +-------+--------------------------------------+ | id | 561a48ea-0c1c-4152-8b7d-e4b4af276c2d | | name | myflavor | | ram | 3072 | | swap | 0 | | vcpus | 1 | +-------+--------------------------------------+ This command shows the details of the flavor ``myflavor``. .. _vinfra service compute flavor delete: vinfra service compute flavor delete ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Delete a compute flavor: :: usage: vinfra service compute flavor delete ```` Flavor ID or name Example: :: # vinfra service compute flavor delete myflavor Operation successful This command deletes the flavor ``myflavor``.