FlavorsΒΆ

Flavor interface.

class novaclient.v3.flavors.Flavor(manager, info, loaded=False)

Bases: novaclient.openstack.common.apiclient.base.Resource

A flavor is an available hardware configuration for a server.

Flavor.HUMAN_ID = True
Flavor.delete()

Delete this flavor.

Flavor.get_keys()

Get extra specs from a flavor.

Parameters:flavor – The Flavor to get extra specs from
Flavor.is_public

Provide a user-friendly accessor to flavor-access:is_public

Flavor.set_keys(metadata)

Set extra specs on a flavor.

Parameters:
  • flavor – The Flavor to set extra spec on
  • metadata – A dict of key/value pairs to be set
Flavor.unset_keys(keys)

Unset extra specs on a flavor.

Parameters:
  • flavor – The Flavor to unset extra spec on
  • keys – A list of keys to be unset
class novaclient.v3.flavors.FlavorManager(api)

Bases: novaclient.v1_1.flavors.FlavorManager

FlavorManager.resource_class

alias of Flavor

Previous topic

Version 3 API Reference

Next topic

Hosts

This Page