|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vmware.vcloud.sdk.VcloudResource<T>
com.vmware.vcloud.sdk.VcloudEntity<com.vmware.vcloud.api.rest.schema.extension.VMWProviderVdcType>
com.vmware.vcloud.sdk.admin.extensions.VMWProviderVdc
public class VMWProviderVdc
Helper class for the VMWProviderVdc Resource in vCloud Admin Extension API.
| Method Summary | |
|---|---|
Task |
delete()
Delete VMWProviderVdc |
static Task |
delete(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmwProviderVdcRef)
Delete VMWProviderVdc |
void |
disable()
Disable the VMW Provider Vdc |
static void |
disable(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmwProviderVdcRef)
Disable the VMW Provider Vdc |
void |
disableResourcePool(String morefValue)
Disable the resource pool. |
void |
enable()
Enable the VMW Provider Vdc |
static void |
enable(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmwProviderVdcRef)
Enable the VMW Provider Vdc |
void |
enableResourcePool(String morefValue)
Enable the resource pool. |
HashMap<String,com.vmware.vcloud.api.rest.schema.ReferenceType> |
getAdminVdcRefsByName()
Returns a HashMap of the AdminVdc References By Name |
List<com.vmware.vcloud.api.rest.schema.extension.VMWStorageProfileType> |
getAvailableVMWProviderVdcStorageProfiles()
Returns a list of all the available storage profiles in this provider vdc. |
HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType> |
getDatastoreVimRefsByMoref()
Returns the datastore vim object references by moref name |
com.vmware.vcloud.api.rest.schema.ReferenceType |
getExternalNetworkRefByName(String name)
Returns the ExternalNetwork reference by name |
Collection<com.vmware.vcloud.api.rest.schema.ReferenceType> |
getExternalNetworkRefs()
Returns the ExternalNetwork referencess |
HashMap<String,com.vmware.vcloud.api.rest.schema.ReferenceType> |
getExternalNetworkRefsByName()
Returns the ExternalNetwork references by name |
com.vmware.vcloud.api.rest.schema.ReferenceType |
getProviderVdcReference()
Returns the provider vdc reference. |
HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VMWProviderVdcResourcePoolType> |
getResourcePoolsByMoref()
Get the VMW Provider Vdc's backing resource pools by moref. |
static HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VMWProviderVdcResourcePoolType> |
getResourcePoolsByMoref(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmwProvVdcRef)
Get the VMW Provider Vdc's backing resource pools by moref. |
List<com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType> |
getResourcePoolVimRefs()
Returns the Resource Pool vim object references |
ReferenceResult |
getVMs(String resourcePoolMoref)
List the VMs on a resource pool. |
com.vmware.vcloud.api.rest.schema.ReferenceType |
getVMWHostRefByName(String name)
Returns the vmw host reference by name |
Collection<com.vmware.vcloud.api.rest.schema.ReferenceType> |
getVMWHostRefs()
Returns the vmw host referencess |
HashMap<String,com.vmware.vcloud.api.rest.schema.ReferenceType> |
getVMWHostRefsByName()
Returns the vmw host references by name |
com.vmware.vcloud.api.rest.schema.ReferenceType |
getVMWNetworkPoolRefByName(String name)
Returns the vmw network pool reference by name |
Collection<com.vmware.vcloud.api.rest.schema.ReferenceType> |
getVMWNetworkPoolRefs()
Returns the vmw network pool referencess |
HashMap<String,com.vmware.vcloud.api.rest.schema.ReferenceType> |
getVMWNetworkPoolRefsByName()
Returns the vmw network pool references by name |
static VMWProviderVdc |
getVMWProviderVdcById(VcloudClient client,
String vCloudId)
Get VMWProviderVdc helper using the vCloud ID |
static VMWProviderVdc |
getVMWProviderVdcByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType reference)
Returns the VMWProviderVdc Helper for the given provider vdc reference |
List<com.vmware.vcloud.api.rest.schema.ReferenceType> |
getVMWProviderVdcStorageProfileRefs()
Returns a list of all the vmw provider vdc storage profile references. |
List<com.vmware.vcloud.api.rest.schema.ReferenceType> |
getVMWVimServerRefs()
Returns the vim server references |
Task |
mergeProviderVdcs(List<com.vmware.vcloud.api.rest.schema.ReferenceType> vmwProvVdcRefs)
Merge a provider vdc with other provider vdcs. |
Task |
migrateVms(String sourceResourcePoolMoref,
List<com.vmware.vcloud.api.rest.schema.ReferenceType> vmRefs,
com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType resourcePoolVimRef)
Migrate Vms to a different resource pool. |
Task |
updateResourcePools(List<com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType> resourcePoolVimRefs,
List<com.vmware.vcloud.api.rest.schema.ReferenceType> resourcePoolRefs)
Add/Delete the resource pools. |
VMWProviderVdc |
updateVMWProviderVdc(com.vmware.vcloud.api.rest.schema.extension.VMWProviderVdcType vmwProviderVdcType)
Update the VMWProviderVdc |
Task |
updateVMWProviderVdcStorageProfiles(List<String> addStorageProfiles,
List<com.vmware.vcloud.api.rest.schema.ReferenceType> removeStorageProfiles)
Updating the provider vdc storage profiles. |
| Methods inherited from class com.vmware.vcloud.sdk.VcloudEntity |
|---|
getMetadata, getReference, getTasks |
| Methods inherited from class com.vmware.vcloud.sdk.VcloudResource |
|---|
getResource |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static VMWProviderVdc getVMWProviderVdcByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType reference)
throws VCloudException
client - reference -
VMWProviderVdc
VCloudException
public static VMWProviderVdc getVMWProviderVdcById(VcloudClient client,
String vCloudId)
throws VCloudException
client - VcloudClientvCloudId - format - The vCloud ID is of the form: "urn:vcloud:type:uuid". For example:
"urn:vcloud:media:d9d976ba-e0ec-4682-a67d-380af49b54e1". String
VMWProviderVdc
VCloudException
public com.vmware.vcloud.api.rest.schema.ReferenceType getProviderVdcReference()
throws VCloudException
ReferenceType
VCloudException
public VMWProviderVdc updateVMWProviderVdc(com.vmware.vcloud.api.rest.schema.extension.VMWProviderVdcType vmwProviderVdcType)
throws VCloudException
vmwProviderVdcType - VMWProviderVdcType
VMWProviderVdc
VCloudException
public Task delete()
throws VCloudException
Task
VCloudException
public static Task delete(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmwProviderVdcRef)
throws VCloudException
client - vCloud Client VcloudClientvmwProviderVdcRef - VMWProviderVdc Ref
Task
VCloudException
public void disable()
throws VCloudException
VCloudException
public static void disable(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmwProviderVdcRef)
throws VCloudException
client - VcloudClientvmwProviderVdcRef -
VCloudException
public void enable()
throws VCloudException
VCloudException
public static void enable(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmwProviderVdcRef)
throws VCloudException
client - VcloudClientvmwProviderVdcRef -
VCloudException
public HashMap<String,com.vmware.vcloud.api.rest.schema.ReferenceType> getAdminVdcRefsByName()
throws VCloudException
HashMap
VCloudExceptionpublic List<com.vmware.vcloud.api.rest.schema.ReferenceType> getVMWVimServerRefs()
List<ReferenceType>
public List<com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType> getResourcePoolVimRefs()
throws VCloudException
List<VimObjectRefType>
VCloudException
public HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VMWProviderVdcResourcePoolType> getResourcePoolsByMoref()
throws VCloudException
HashMap<String, VMWProviderVdcResourcePoolType>
VCloudException
VCloudException
public static HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VMWProviderVdcResourcePoolType> getResourcePoolsByMoref(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmwProvVdcRef)
throws VCloudException
client - VcloudClientvmwProvVdcRef - ReferenceType
HashMap<String, VMWProviderVdcResourcePoolType>
VCloudException
public Task updateResourcePools(List<com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType> resourcePoolVimRefs,
List<com.vmware.vcloud.api.rest.schema.ReferenceType> resourcePoolRefs)
throws VCloudException
resourcePoolVimRefs - - To be added resource pool vim object refs List< VimObjectRefType
>resourcePoolRefs - - To be deleted resource pool references List< ReferenceType>
Task
VCloudExceptionpublic HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType> getDatastoreVimRefsByMoref()
HashMap<String, VimObjectRefType>
public void disableResourcePool(String morefValue)
throws VCloudException
morefValue - - Resource Pool Moref. String
VCloudException
public void enableResourcePool(String morefValue)
throws VCloudException
morefValue - - Resource Pool Moref. String
VCloudException
public Task mergeProviderVdcs(List<com.vmware.vcloud.api.rest.schema.ReferenceType> vmwProvVdcRefs)
throws VCloudException
vmwProvVdcRefs - - VMW ProviderVdc references.
Task
VCloudExceptionpublic HashMap<String,com.vmware.vcloud.api.rest.schema.ReferenceType> getExternalNetworkRefsByName()
HashMappublic com.vmware.vcloud.api.rest.schema.ReferenceType getExternalNetworkRefByName(String name)
name -
ReferenceTypepublic Collection<com.vmware.vcloud.api.rest.schema.ReferenceType> getExternalNetworkRefs()
Collectionpublic HashMap<String,com.vmware.vcloud.api.rest.schema.ReferenceType> getVMWNetworkPoolRefsByName()
HashMappublic com.vmware.vcloud.api.rest.schema.ReferenceType getVMWNetworkPoolRefByName(String name)
name -
ReferenceTypepublic Collection<com.vmware.vcloud.api.rest.schema.ReferenceType> getVMWNetworkPoolRefs()
Collectionpublic HashMap<String,com.vmware.vcloud.api.rest.schema.ReferenceType> getVMWHostRefsByName()
HashMappublic com.vmware.vcloud.api.rest.schema.ReferenceType getVMWHostRefByName(String name)
name -
ReferenceTypepublic Collection<com.vmware.vcloud.api.rest.schema.ReferenceType> getVMWHostRefs()
Collection
public List<com.vmware.vcloud.api.rest.schema.ReferenceType> getVMWProviderVdcStorageProfileRefs()
throws VCloudException
List<ReferenceType>
VCloudException
public List<com.vmware.vcloud.api.rest.schema.extension.VMWStorageProfileType> getAvailableVMWProviderVdcStorageProfiles()
throws VCloudException
List<VMWStorageProfileType>
VCloudException
public Task updateVMWProviderVdcStorageProfiles(List<String> addStorageProfiles,
List<com.vmware.vcloud.api.rest.schema.ReferenceType> removeStorageProfiles)
throws VCloudException
addStorageProfiles - - list of storage profiles which can be added to this provider vdc.removeStorageProfiles - - list of storage profile references which needs to be removed from this provider
vdc.
Task
VCloudException
public Task migrateVms(String sourceResourcePoolMoref,
List<com.vmware.vcloud.api.rest.schema.ReferenceType> vmRefs,
com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType resourcePoolVimRef)
throws VCloudException
sourceResourcePoolMoref - - the source resource pool moref where the vms currently reside.vmRefs - - virtual machine references which will be migrated. At least one Vm should be
provided for migrating to the target resource pool. List<
ReferenceType>resourcePoolVimRef - - Vim object reference to a resource pool to which the virtual machine will be
migrated. This parameter is optional. If it is not provided, the system will
automatically choose a target resource pool and migrate the VMs to it.
VimObjectRefType
Task
VCloudException
public ReferenceResult getVMs(String resourcePoolMoref)
throws VCloudException
resourcePoolMoref - - the resource pool moref for which VMs need to be listed.
ReferenceResult
VCloudException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||