Flavor interface.
novaclient.v2.flavors.
Flavor
(manager, info, loaded=False, resp=None)Bases: novaclient.base.Resource
A flavor is an available hardware configuration for a server.
Populate and bind to a manager.
Parameters: |
|
---|
HUMAN_ID
= Truedelete
()Delete this flavor.
Returns: | An instance of novaclient.base.TupleWithMeta |
---|
ephemeral
Provide a user-friendly accessor to OS-FLV-EXT-DATA:ephemeral.
get_keys
()Get extra specs from a flavor.
Returns: | An instance of novaclient.base.DictWithMeta |
---|
is_public
Provide a user-friendly accessor to os-flavor-access:is_public.
set_keys
(metadata)Set extra specs on a flavor.
Parameters: | metadata – A dict of key/value pairs to be set |
---|
unset_keys
(keys)Unset extra specs on a flavor.
Parameters: | keys – A list of keys to be unset |
---|---|
Returns: | An instance of novaclient.base.TupleWithMeta |
novaclient.v2.flavors.
FlavorManager
(api)Bases: novaclient.base.ManagerWithFind
Manage Flavor
resources.
create
(name, ram, vcpus, disk, flavorid='auto', ephemeral=0, swap=0, rxtx_factor=1.0, is_public=True)Create a flavor.
Parameters: |
|
---|---|
Returns: |
|
delete
(flavor)Delete a specific flavor.
Parameters: | flavor – The ID of the Flavor to get. |
---|---|
Returns: | An instance of novaclient.base.TupleWithMeta |
get
(flavor)Get a specific flavor.
Parameters: | flavor – The ID of the Flavor to get. |
---|---|
Returns: | Flavor |
is_alphanum_id_allowed
= Truelist
(detailed=True, is_public=True, marker=None, min_disk=None, min_ram=None, limit=None, sort_key=None, sort_dir=None)Get a list of all flavors.
Parameters: |
|
---|---|
Returns: | list of |
resource_class
alias of Flavor
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.