Flavors extra-specs

  1. flavor_extra_specss(flavor, key=None) Lists flavor extra specs.

Parameters:

Name Type Description
flavor String flavor id or Flavor Object
key String specific spec key

Return value: FlavorExtraSpec Object or a list

Return value example:

specKey2 : 1
specKey1 : 2

2. create_flavor_extra_spec(flavor, **attr)

Create extra specs for a flavor.

Parameters: attr(Dict) (like metadata), flavor(String)

Return value: FlavorExtraSpec Object

Return value example:

specKey2 : 1
specKey1 : 2

3. update_flavor_extra_spec(flavor, spec, value)

Updates an extra spec.

Parameters:

  • flavor(String): flavor id or Flavor Object
  • spec(String): the key of the spec
  • value(String): updated value

Return value: FlavorExtraSpec Object

4. delete_flavor_extra_spec(flavor, spec)

Delete a spec.

Parameters:

  • flavor(String): flavor id or Flavor Object
  • spec(String): the key of the spec

Return value: None on success

results matching ""

    No results matching ""