API Docs

Get to know update_custom_flavor

Overview: Updates a Custom User Flavor to be used on a Private Cloud. Returns the Custom Flavor ID of the newly updated flavor.

expects the following parameters:

  • name – Name of the Custom Flavor to be updated.
  • ram – The amount of ram the custom flavor will have. Given in MB
  • disk – The amount of disk the custom flavor will have. Given in GB
  • vcpus – The amount of virtual CPUs the custom flavor will have.
  • custom_flavors_id – The ID of the Custom Flavor to update.

Example:

$params = array(
	'name' => 'MyCustomFlavor',
	'ram' => 512,
	'disk' => 25,
	'vcpus' => 1,
	'custom_flavors_id' => 1

);
$api->call('cloud.update_custom_flavor', $params);
								

Output:

Array(
  [result] => 11111
)