Flavor interface.
Bases: Resource
A flavor is an available hardware configuration for a server.
Populate and bind to a manager.
manager – BaseManager object
info – dictionary representing resource attributes
loaded – prevent lazy-loading if set to True
resp – Response or list of Response objects
Delete this flavor.
An instance of novaclient.base.TupleWithMeta
Provide a user-friendly accessor to OS-FLV-EXT-DATA:ephemeral.
Get extra specs from a flavor.
An instance of novaclient.base.DictWithMeta
Provide a user-friendly accessor to os-flavor-access:is_public.
Set extra specs on a flavor.
metadata – A dict of key/value pairs to be set
Unset extra specs on a flavor.
keys – A list of keys to be unset
An instance of novaclient.base.TupleWithMeta
Bases: ManagerWithFind
Manage Flavor
resources.
Create a flavor.
name – Descriptive name of the flavor
ram – Memory in MiB for the flavor
vcpus – Number of VCPUs for the flavor
disk – Size of local disk in GiB
flavorid – ID for the flavor (optional). You can use the reserved
value "auto"
to have Nova generate a UUID for the
flavor in cases where you cannot simply pass None
.
ephemeral – Ephemeral disk space in GiB.
swap – Swap space in MiB
rxtx_factor – RX/TX factor
is_public – Whether or not the flavor is public.
description – A free form description of the flavor. Limited to 65535 characters in length. Only printable characters are allowed. (Available starting with microversion 2.55)
Delete a specific flavor.
flavor – Instance of Flavor
to delete or ID of the
flavor to delete.
An instance of novaclient.base.TupleWithMeta
Get a list of all flavors.
detailed – Whether flavor needs to be return with details (optional).
is_public – Filter flavors with provided access type (optional). None means give all flavors and only admin has query access to all flavor types.
marker – Begin returning flavors that appear later in the flavor list than that represented by this flavor id (optional).
min_disk – Filters the flavors by a minimum disk space, in GiB.
min_ram – Filters the flavors by a minimum RAM, in MiB.
limit – maximum number of flavors to return (optional). Note the API server has a configurable default limit. If no limit is specified here or limit is larger than default, the default limit will be used.
sort_key – Flavors list sort key (optional).
sort_dir – Flavors list sort direction (optional).
list of Flavor
.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.