API Docs

Get to know list_custom_flavors

Overview: Lists Custom Flavors to be used on a Private Cloud. Returns an array containing your custom flavors. If no parameters are set it will return all of the custom flavors owned by you.

expects the following parameters:

  • name *optional* – Name of the Custom Flavor to be listed.
  • custom_flavors_id *optional* – id of the Custom Flavor to be listed.

Example:

$params = array();
$api->call('cloud.list_custom_flavors', $params);
								

Output:

Array(
    [result] => Array
        (
            [0] => Array
                (
                    [id] => 11111-1
                    [name] => MyCustomFlavor
                    [ram] => 512
                    [disk] => 75
                    [vcpus] => 4
                    [user_id] => 111
                    [ram_gig] => 0.5
                    [cpu] => 4
                )

            [1] => Array
                (
                    [id] => 11111-2
                    [name] => MycustomFlavor2
                    [ram] => 1024
                    [disk] => 50
                    [vcpus] => 2
                    [user_id] => 11
                    [ram_gig] => 1
                    [cpu] => 4
                )

        )

)