vinfra service compute flavor create
Create a new compute flavor:
usage: vinfra service compute flavor create [--swap <size-mb>] --vcpus <vcpus> --ram <size-mb> <flavor-name>
--swap <size-mb>
- Swap space size, in megabytes
--vcpus <vcpus>
- Number of virtual CPUs
--ram <size-mb>
- Memory size, in megabytes
<flavor-name>
- 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.