public interface VmsResource
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
add(VM vm)
Creates a new VM and adds it to the database.
|
VmResource |
getVmSubResource(String id)
Sub-resource locator method, returns individual VmResource on which the
remainder of the URI is dispatched.
|
VMs |
list() |
javax.ws.rs.core.Response |
remove(String id) |
javax.ws.rs.core.Response |
remove(String id,
Action action) |
VMs list()
javax.ws.rs.core.Response add(VM vm)
The VM#name, VM#templateId and VM#clusterId properties are required.
vm
- the VM definition from which to create the new VMjavax.ws.rs.core.Response remove(String id)
VmResource getVmSubResource(String id)
id
- the VM IDCopyright © 2012. All Rights Reserved.