Excerpt | ||
---|---|---|
| ||
How to edit VM cost codes, lock and protect VMs, relocate a VM, troubleshoot VM launch, manage VMs with workflow feature, and perform power operations with the API on the hybrid cloud platform. |
...
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
...
What happens when the user clicks deploy?
...
Deploy errors
...
The VM scheduler deploys the VM.
A simplified description of the deploy process is shown in the following diagram.
...
Deploy errors
When an error occurs during a VM deploy, the platform displays one or more of the following:
A yellow warning or red error notification message
An error state on the VM icon
A VM warning symbol in the lower part of the VM icon.
The user and the administrator may be notified of the error.
The user can click on the error icon to display the events and the user can click on an event in the list to display its tracer message.
...
The platform displays the full details of an error in the Events view and on the Events panel in the Home view.
...
Here is an example of an event for a failed reconfigure.
Panel | ||
---|---|---|
| ||
Source: Abiquo / admin / |
The VM warning symbol is based on the VM task state. The VM tasks are a collection of jobs. For example, a Deploy task includes jobs to allocate, configure, and power on the VM. If a job fails, then the task will also fail and the platform will display the warning symbol on the VM.
To acknowledge and delete a warning symbol, click on the symbol to remove it.
If your user role is an administrator role with the privilege to "Manage Users", then you can also delete warnings for the users of the enterprises that you manage.
...
States of VApps and VMs
Include Page | ||||
---|---|---|---|---|
|
...
Manage workflow tasks
Excerpt-include |
---|
...
|
...
|
...
Retrieve a VM using the API
...
This section describes how to retrieve a virtual machine with the REST API.
Before you begin, create a VM with the Abiquo UI and power it off. Open the browser console. This example uses Chrome, so we clicked F12.
Select the Network view
Click the red arrow record button and the clear button next to it
In the platform on the VM control panel, click the Start button
Scroll up to the first request, which should be a PUT request to the virtual machine state URL. Click on the request
If you can't see the Method column, right click on a column heading and select Method from the list
Select the link to the VM up to the end of the VM ID number (before "/state")
Use a cURL request similar to the one the example below or a REST API tool such as Postman to perform a GET request to this link. For this basic testing, you can use the -k option to avoid security warnings.
Code Block |
---|
curl -X GET https://mjsabiquo.bcn.abiquo.com/api/cloud/virtualdatacenters/2/virtualappliances/1/virtualmachines/47 \
-H 'Accept:application/vnd.abiquo.virtualmachine+json;version=5.0' \
-u admin:xabiquo -k --verbose |
Expand | ||
---|---|---|
| ||
Success status code: 200 Response payload:
|
...
Manage VM power states using the API
To manage the virtual machine using the API, first you need to retrieve the virtual machine and find the links for different actions. Remember to see VirtualMachinesResource for full details of virtual machine operations using the Abiquo API.
excerpt-include | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
Related pages