API Docs

Get to know auto_scale_schedule_list

Overview: Lists existing auto scale schedules.

auto_scale_schedule_list expects no parameters:

Example:

$params = array();

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

Output:

Array
(
    [result] => Array
        (
            [0] => Array
                (
                    [id] => 10
                    [name] => MySchedule
                    [schedule] => {"sunday":{"start":"0","end":"24","size":"0"}}
                )

            [1] => Array
                (
                    [id] => 11
                    [name] => MySchedule2
                    [schedule] => {"sunday":{"start":"12","end":"18","size":"9"},"monday":{"start":"12","end":"18","size":"9"},"tuesday":{"start":"12","end":"18","size":"9"},"wednesday":{"start":"12","end":"18","size":"9"},"thursday":{"start":"7","end":"23","size":"7"},"friday":{"start":"12","end":"18","size":"9"},"saturday":{"start":"12","end":"18","size":"9"}}
                )

            [2] => Array
                (
                    [id] => 12
                    [name] => MySchedule3
                    [schedule] => {"sunday":{"start":"21","end":"24","size":"5"},"monday":{"start":"0","end":"9","size":"5"}}
                )
        )
)