org.jclouds.savvis.vpdc.features
Interface VMClient


public interface VMClient

Provides access to Symphony VPDC resources via their REST API.

Author:
Adrian Cole
See Also:

Method Summary
 Set<Task> addMultipleVMsIntoVDC(String billingSiteId, String vpdcId, Iterable<VMSpec> vmSpecs)
          Add/Deploy new VMs into VDC
 Set<Task> addMultipleVMsIntoVDC(URI vpdc, Iterable<VMSpec> vmSpecs)
          Add/Deploy new VMs into VDC
 Task addVMIntoVDC(String billingSiteId, String vpdcId, VMSpec spec)
          Add/Deploy new VM into VDC
 Task addVMIntoVDC(URI vpdc, VMSpec spec)
           
 Task captureVApp(String billingSiteId, String vpdcId, URI vAppUri)
           
 Task cloneVApp(URI vAppUri, String newVAppName, String networkTierName)
           
 Task powerOffVM(URI vm)
          Power off a VM
 Task powerOnVM(URI vm)
          Power on a VM
 Task removeVM(URI vm)
          Remove a VM
 Task removeVMFromVDC(String billingSiteId, String vpdcId, String vmId)
          Remove a VM

 

Method Detail

addVMIntoVDC

Task addVMIntoVDC(String billingSiteId,
                  String vpdcId,
                  VMSpec spec)
Add/Deploy new VM into VDC

Parameters:
billingSiteId - billing site Id, or null for default
vpdcId - vpdc Id
spec - how to
Returns:
VM in progress

addVMIntoVDC

Task addVMIntoVDC(URI vpdc,
                  VMSpec spec)
Parameters:
vpdc - href of the vpdc
See Also:
addVMIntoVDC(java.lang.String, java.lang.String, org.jclouds.savvis.vpdc.domain.VMSpec)

addMultipleVMsIntoVDC

Set<Task> addMultipleVMsIntoVDC(String billingSiteId,
                                String vpdcId,
                                Iterable<VMSpec> vmSpecs)
Add/Deploy new VMs into VDC

Parameters:
billingSiteId - billing site Id, or null for default
vpdcId - vpdc Id
vmSpecs - vm configurations
Returns:
VM's in progress

addMultipleVMsIntoVDC

Set<Task> addMultipleVMsIntoVDC(URI vpdc,
                                Iterable<VMSpec> vmSpecs)
Add/Deploy new VMs into VDC

Parameters:
vpdc - href of the vpdc
vmSpecs - vm configurations
Returns:
VM's in progress

captureVApp

Task captureVApp(String billingSiteId,
                 String vpdcId,
                 URI vAppUri)
Parameters:
billingSiteId - billing site Id, or null for default
vpdcId - vpdc Id
vAppUri - href of the vApp
Returns:
Task with vAppTemplate href

cloneVApp

Task cloneVApp(URI vAppUri,
               String newVAppName,
               String networkTierName)
Parameters:
vAppUri - href of the vApp
newVAppName - name for the new vApp
networkTierName - network tier name for vApp
Returns:

removeVMFromVDC

Task removeVMFromVDC(String billingSiteId,
                     String vpdcId,
                     String vmId)
Remove a VM

Pre-conditions:

Parameters:
billingSiteId - billing site Id, or null for default
vpdcId - vpdc Id
vmId - vm you wish to remove
Returns:
null, if the vm was not found

removeVM

Task removeVM(URI vm)
Remove a VM

Parameters:
vm - href of the vm
See Also:
removeVMFromVDC(java.lang.String, java.lang.String, java.lang.String)

powerOffVM

Task powerOffVM(URI vm)
Power off a VM

Parameters:
vm - href of the vm
Returns:

powerOnVM

Task powerOnVM(URI vm)
Power on a VM

Parameters:
vm - href of the vm
Returns:


Copyright © 2009-2011 jclouds. All Rights Reserved.