API Docs

Get to know auto_scale_profile_get

Overview: Gets an existing auto scale profile.

auto_scale_profile_get expects the following parameters:

  • auto_scale_profile_id *optional*– The unique ID for the auto scale profile.
  • vm_id *optional*– The unique ID for a VM. If the VM is part of an auto scale profile, the profile containing the VM will be returned.

NOTE: Only one parameter can be sent with the function.

Example:

$params = array(
	'auto_scale_profile_id' => 10
);

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

Output:

Array
(
    [result] => Array
        (
            [id] => 10
            [name] => profilename
            [min] => 1
            [max] => 5
            [alarm_config] => []
            [vm_list] => []
            [vm_config] => {"name":"auto_scale_cloud","zone_id":"44","image_id":"47","flavor_id":"1"}
            [schedule_id] =>
            [pool_id] =>
            [status] => new
        )

)