API Docs

Get to know list_flavors

Overview: Lists the available plans.

list_flavors expects no parameters.

Example:

$api->call('cloud.list_flavors');

Output:

Array
(
    [status] => 1
    [data] => Array
(
    [1] => Array
        (
            [id] => 1
            [name] => 1 CPU, 1 GB RAM, 10 GB DISK, 1 TB TRANSFER
            [cpu] => 1
            [ram] => 2
            [disk] => 20
            [bw] => 1000
            [cost] => 6.00
        )

    [2] => Array
        (
            [id] => 2
            [name] => 1 CPU, 2 GB RAM, 20 GB DISK, 1 TB TRANSFER
            [cpu] => 1
            [ram] => 2
            [disk] => 20
            [bw] => 1000
            [cost] => 12.00
        )
    )
)