|
||||||||||
| 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.VimServerType>
com.vmware.vcloud.sdk.admin.extensions.VMWVimServer
public class VMWVimServer
Helper class for the VMWVimServer Resource in vCloud Admin Extension API.
| Method Summary | |
|---|---|
Task |
forceVMWVimServerReconnect()
Forcing the vimserver reconnect. |
static Task |
forceVMWVimServerReconnect(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmwVimServerRef)
Forcing the vimserver reconnect |
HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType> |
getNetworkVimRefsByMoref()
Retrieves the unused/available Network References by Moref for a VMWVimServer. |
static HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType> |
getNetworkVimRefsByMoref(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vimServerRef)
Retrieves the unused/available Port Group Network References by Moref for a VMWVimServer |
HashMap<String,com.vmware.vcloud.api.rest.schema.extension.ResourcePoolType> |
getResourcePools()
Returns a HashMap of the ResourcePools By Name |
static HashMap<String,com.vmware.vcloud.api.rest.schema.extension.ResourcePoolType> |
getResourcePools(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vimServerRef)
Returns a HashMap of the ResourcePools By Name |
HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VmObjectRefType> |
getVms()
Retrieves the vm's in the VimServer by name |
HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VmObjectRefType> |
getVms(int page)
Retrieves the vm's in the VimServer by name |
HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VmObjectRefType> |
getVms(int page,
int pageSize)
Retrieves the vm's in the VimServer by name |
static HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VmObjectRefType> |
getVms(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vimServerRef)
Returns the list of vms |
static HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VmObjectRefType> |
getVms(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vimServerRef,
int page)
Returns the list of vms |
static HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VmObjectRefType> |
getVms(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vimServerRef,
int page,
int pageSize)
Returns the list of vms |
HashMap<String,com.vmware.vcloud.api.rest.schema.ReferenceType> |
getVMWHostRefsByName()
Returns a HashMap of the VMWHostReferences By Name |
static HashMap<String,com.vmware.vcloud.api.rest.schema.ReferenceType> |
getVMWHostRefsByName(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vimServerRef)
Returns a HashMap of the VMWHostReferences By Name |
List<com.vmware.vcloud.api.rest.schema.extension.VMWStorageProfileType> |
getVMWStorageProfiles()
Returns a list of all the storage profiles in this vmw vimserver. |
static VMWVimServer |
getVMWVimServerById(VcloudClient client,
String vCloudId)
Get VMWVimServer helper using the vCloud ID |
static VMWVimServer |
getVMWVimServerByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmwVimServerRef)
Retrieves the VimServer helper by reference |
com.vmware.vcloud.api.rest.schema.extension.ShieldManagerType |
getvShieldManager()
Returns the vShieldManger properties. |
String |
getvSphereWebClientUrl(String vimObjectType,
String vimObjectMoref)
Retrieve the vSphere URL of an object. |
Media |
importMedia(com.vmware.vcloud.api.rest.schema.extension.ImportMediaParamsType importMediaParamsType)
Imports Media. |
Vapp |
importVmAsVApp(com.vmware.vcloud.api.rest.schema.extension.ImportVmAsVAppParamsType importVmAsVAppParamsType)
Imports VM from the vim server as Vapp |
VappTemplate |
importVmAsVAppTemplate(com.vmware.vcloud.api.rest.schema.extension.ImportVmAsVAppTemplateParamsType importVmAsVAppTemplateParamsType)
Imports VM from vim server as VappTemplate |
Task |
importVmIntoVApp(com.vmware.vcloud.api.rest.schema.extension.ImportVmIntoExistingVAppParamsType importVmIntoVAppParamsType)
Imports VM from the vim server into an existing Vapp. |
Task |
refreshStorageProfiles()
Refresh the VMW Vimservers storage profiles. |
static Task |
refreshStorageProfiles(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmwVimServerRef)
Refresh the VMW Vimservers storage profiles. |
Task |
refreshVimServer()
Refresh vCenter server. |
Task |
unregisterVMWVimServer()
Unregister the vim server |
static Task |
unregisterVMWVimServer(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmwVimServerRef)
Unregister the vim server |
Task |
updateVMWVimServer(com.vmware.vcloud.api.rest.schema.extension.VimServerType vimServerType)
Updates the vim server. |
Task |
updatevShieldManager(com.vmware.vcloud.api.rest.schema.extension.ShieldManagerType shieldManager)
Updates the vShield Manager. |
| 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 VMWVimServer getVMWVimServerByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmwVimServerRef)
throws VCloudException
client -
VMWVimServer
VCloudException
public static VMWVimServer getVMWVimServerById(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
Vdc
VCloudException
public Task updateVMWVimServer(com.vmware.vcloud.api.rest.schema.extension.VimServerType vimServerType)
throws VCloudException
vimServerType - VimServerType
Task
VCloudException
public Task forceVMWVimServerReconnect()
throws VCloudException
Task
VCloudException
public static Task forceVMWVimServerReconnect(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmwVimServerRef)
throws VCloudException
client - vmwVimServerRef -
Task
VCloudException
public Task unregisterVMWVimServer()
throws VCloudException
Task
VCloudException
public Task refreshVimServer()
throws VCloudException
Task
VCloudException
public static Task unregisterVMWVimServer(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmwVimServerRef)
throws VCloudException
client - vmwVimServerRef -
Task
VCloudException
public static HashMap<String,com.vmware.vcloud.api.rest.schema.extension.ResourcePoolType> getResourcePools(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vimServerRef)
throws VCloudException
client - - VcloudClientvimServerRef - - ReferenceType to the VMWVimServer
HashMap<String,ResourcePoolType>
VCloudException
public HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType> getNetworkVimRefsByMoref()
throws VCloudException
HashMap<String,VimObjectRefType>
VCloudException
public static HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType> getNetworkVimRefsByMoref(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vimServerRef)
throws VCloudException
client - - VcloudClientvimServerRef - - ReferenceType to the VMWVimServer
HashMap<String,VimObjectRefType>
VCloudException
public HashMap<String,com.vmware.vcloud.api.rest.schema.ReferenceType> getVMWHostRefsByName()
throws VCloudException
HashMap
VCloudException
public static HashMap<String,com.vmware.vcloud.api.rest.schema.ReferenceType> getVMWHostRefsByName(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vimServerRef)
throws VCloudException
client - - VcloudClientvimServerRef - - ReferenceType to the VMWVimServer
HashMap
VCloudException
public HashMap<String,com.vmware.vcloud.api.rest.schema.extension.ResourcePoolType> getResourcePools()
throws VCloudException
HashMap<String,ResourcePoolType>
VCloudException
public HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VmObjectRefType> getVms()
throws VCloudException
HashMap<String, VmObjectRefType>
VCloudException
public HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VmObjectRefType> getVms(int page,
int pageSize)
throws VCloudException
page - - parameter page must be greater or equal to 1 && less or equal to 100pageSize - - parameter pageSize must be greater or equal to 1
HashMap<String, VmObjectRefType>
VCloudException
public HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VmObjectRefType> getVms(int page)
throws VCloudException
page - - parameter page must be greater or equal to 1 && less or equal to 100
HashMap<String, VmObjectRefType>
VCloudException
public static HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VmObjectRefType> getVms(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vimServerRef)
throws VCloudException
client - vimServerRef -
HashMap<String, VmObjectRefType>
VCloudException
public static HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VmObjectRefType> getVms(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vimServerRef,
int page)
throws VCloudException
client - vimServerRef - page - - parameter page must be greater or equal to 1 && less or equal to 100
HashMap<String, VmObjectRefType>
VCloudException
public static HashMap<String,com.vmware.vcloud.api.rest.schema.extension.VmObjectRefType> getVms(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vimServerRef,
int page,
int pageSize)
throws VCloudException
client - vimServerRef - page - - parameter page must be greater or equal to 1 && less or equal to 100pageSize - - parameter pageSize must be greater or equal to 1
HashMap<String, VmObjectRefType>
VCloudException
public Vapp importVmAsVApp(com.vmware.vcloud.api.rest.schema.extension.ImportVmAsVAppParamsType importVmAsVAppParamsType)
throws VCloudException
importVmAsVAppParamsType - ImportVmAsVAppParamsType
Vapp
VCloudException
public Task importVmIntoVApp(com.vmware.vcloud.api.rest.schema.extension.ImportVmIntoExistingVAppParamsType importVmIntoVAppParamsType)
throws VCloudException
importVmIntoVAppParamsType - ImportVmIntoExistingVAppParamsType
Task
VCloudException
public VappTemplate importVmAsVAppTemplate(com.vmware.vcloud.api.rest.schema.extension.ImportVmAsVAppTemplateParamsType importVmAsVAppTemplateParamsType)
throws VCloudException
importVmAsVAppTemplateParamsType - ImportVmAsVAppTemplateParamsType
VappTemplate
VCloudException
public Media importMedia(com.vmware.vcloud.api.rest.schema.extension.ImportMediaParamsType importMediaParamsType)
throws VCloudException
importMediaParamsType - - ImportMediaParamsType If catalog property is omitted from request the
media is imported into VDC but not associated with catalog
Media
VCloudException
public com.vmware.vcloud.api.rest.schema.extension.ShieldManagerType getvShieldManager()
throws VCloudException
ShieldManagerType
VCloudException
public Task updatevShieldManager(com.vmware.vcloud.api.rest.schema.extension.ShieldManagerType shieldManager)
throws VCloudException
shieldManager - ShieldManagerType
Task
VCloudException
public List<com.vmware.vcloud.api.rest.schema.extension.VMWStorageProfileType> getVMWStorageProfiles()
throws VCloudException
List<VMWStorageProfileType>
VCloudException
public Task refreshStorageProfiles()
throws VCloudException
Task
VCloudException
public static Task refreshStorageProfiles(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmwVimServerRef)
throws VCloudException
client - vmwVimServerRef -
Task
VCloudException
public String getvSphereWebClientUrl(String vimObjectType,
String vimObjectMoref)
throws VCloudException
vimObjectType - VimObjectTypeEnumvimObjectMoref - ex: resgroup-25
String
VCloudException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||