Virtual machine functionality.
This resource represents a method in which to provision a new virtual machine.
Resource URI:
/rest/hosting/vm/
Provision a new virtual machine by submitting an HTTP PUT request.
Note
This resource requires create permission on the elastic_hosting extension module.
| Parameters: |
|
|---|---|
| Return type: |
This resource represens a specific virtual machine.
Resource URI:
/rest/hosting/vm/<UUID>/
Retrieve the specified virtual machine by submitting an HTTP GET request. The UUID in the resource URI should be the UUID of the target virtual machine.
Note
This resource requires read permission on both the virtual machine and the elastic_hosting extension module when using the HTTP GET method.
| Return type: | vm.RepVmUUID |
|---|
Update the specified virtual machine by submitting an HTTP POST request. The UUID in the resource URI should be the UUID of the target virtual machine.
Note
This resource requires update permission on both the virtual machine and the elastic_hosting extension module when using the HTTP POST method.
| Parameters: |
|
|---|---|
| Return type: |
This resource represents a list of virtual machines.
Resource URI:
/rest/hosting/vm/list/
Retrieve a list of virtual machines by submitting an HTTP GET request.
Note
This resource requires read permission on the elastic_hosting extension module and on each virtual machine that is found.
| Return type: | vm.RepVmList |
|---|
This is a representation of a virtual machine currently being provisioned.
Representation:
{"errno":response.errno,
"message":response.message,
"transaction": transaction.uuid}
This is a representation of a virtual machine resource.
Representation:
{"errno": response.errno,
"message": response.message,
"vm": {"uuid": vm.uuid,
"name": vm.name,
"state": vm.state,
"os": vm.os,
"hardware_profile_uuid": vm.hardware_profile,
"vnc_ip_address": vm.vnc_ip,
"vnc_port": vm.vnc_port,
"vnc_password": vm.vnc_password,
"vnc_enabled": vm.vnc_enabled,
"interfaces": [interface_obj1, interface_obj2]}}
This is a representation of a list of virtual machines. This is a list of vm.RepVmUUID representations.
Representation
{"errno": response.errno,
"message": response.message,
"vms": [vm1, vm2]}
See also