API Docs

Get to know auto_scale_profile_list

Overview: Lists existing auto scale profiles.

auto_scale_profile_list expects no parameters:

Example:

$params = array();

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

Output:

Array
(
    [result] => Array
        (
            [0] => Array
                (
                    [id] => 1
                    [name] => profileone
                    [min] => 1
                    [max] => 20
                    [alarm_config] => [{"alarm":"cpu_util","operator":">","threshold":"80","period":"1","time_interval":"600","to_create":"2"}]
                    [vm_list] => []
                    [vm_config] => {"name":"secondprofile","zone_id":"44","image_id":"47","flavor_id":"1"}
                    [schedule_id] =>
                    [pool_id] =>
                    [status] => active
                )
            [1] => Array
                (
                    [id] => 2
                    [name] => profiletwo
                    [min] => 1
                    [max] => 5
                    [alarm_config] => [{"alarm":"cpu_util","operator":">","threshold":"80","period":"1","time_interval":"600","to_create":"2"}]
                    [vm_list] => []
                    [vm_config] => {"name":"im_cool","zone_id":"44","image_id":"47","flavor_id":"2"}
                    [schedule_id] => 44
                    [pool_id] =>
                    [status] => active
                    [schedule] => Array
                        (
                            [id] => 44
                            [name] => overnighter
                            [nerp_id] => 14619
                            [schedule] => {"sunday":{"start":"21","end":"24","size":"5"},"monday":{"start":"0","end":"9","size":"5"}}
                        )
                )
            [2] => Array
                (
                    [id] => 3
                    [name] => profilethree
                    [min] => 5
                    [max] => 10
                    [alarm_config] => []
                    [vm_list] => []
                    [vm_config] => {"name":"wowclouds","zone_id":"42","image_id":"47","flavor_id":"2"}
                    [schedule_id] =>
                    [pool_id] =>
                    [status] => active
                )
        )
)