API Docs

Get to know create_custom_flavor

Overview: Creates a new Custom User Flavor to be used on a user's Private Cloud. Returns the Custom Flavor ID of the newly created flavor.

expects the following parameters:

  • name – Name of the Custom Flavor to be created.
  • 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.

Example:

$params = array(
	'name' => 'MyCustomFlavor',
	'ram' => 512,
	'disk' => 25,
	'vcpus' => 1
);
$api->call('cloud.create_custom_flavor', $params);
								

Output:

Array(
  [result] => 11111
)