API Docs

Get to know edit_label

Overview: Updates a label for an indicated VM.

edit_label expects the following parameters:

  • vm_id – The identifier of the VM that will be updated.
  • new_label - The desired value of the label.

Example:

$params = array(
	    'vm_id' => 1,
	    'new_label' => "vm1.ubiquityhosting.com"
	    );
$api->call('cloud.edit_label', $params);

Output:

Array
	(
	    [status] => 1
	    [data] => Successfully Changed Label
	)