Package com.vmware.vapp
Class OVFManagerImportLocalVApp
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.vapp.OVFManagerImportLocalVApp
-
@Sample(name="ovf-manager-import-local-vapp", description="This class can be used import or deploy an OVF Appliance from the Local drive.\nDue to some issue with JAX-WS deserialization, \"HttpNfcLeaseState\" is deserialized as\nan XML Element and the Value is returned in the ObjectContent as the First Child of Node\nObjectContent[0]->ChangeSet->ElementData[0]->val->firstChild so correct value of HttpNfcLeaseState\n must be extracted from firstChild node\n") public class OVFManagerImportLocalVApp extends ConnectedVimServiceBaseOVFManagerImportLocalVApp This class can be used import or deploy an OVF Appliance from the Local drive. Due to some issue with JAX-WS deserialization, "HttpNfcLeaseState" is deserialized as an XML Element and the Value is returned in the ObjectContent as the First Child of Node ObjectContent[0]->ChangeSet->ElementData[0]->val->firstChild so correct value of HttpNfcLeaseState must be extracted from firstChild node Parameters: host [required] Name of the host system localpath [required] OVFFile LocalPath vappname [required] New vApp Name datastore [optional] Name of the datastore to be used Command Line: run.bat com.vmware.vapp.OVFManagerImportLocalVApp --url [webserviceurl] --username [username] --password [password] --host [hostname] --localpath [OVFFile LocalPath] --vappname [New vApp Name]
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vmware.connection.ConnectedVimServiceBase
ConnectedVimServiceBase.ConnectionException
-
-
Field Summary
-
Fields inherited from class com.vmware.connection.ConnectedVimServiceBase
PROP_ME_NAME, SVC_INST_NAME
-
-
Constructor Summary
Constructors Constructor Description OVFManagerImportLocalVApp()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()voidsetDatastore(java.lang.String datastore)voidsetHost(java.lang.String host)voidsetLocalPath(java.lang.String localPath)voidsetVappName(java.lang.String vappName)-
Methods inherited from class com.vmware.connection.ConnectedVimServiceBase
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
-
-
-
-
Method Detail
-
setHost
@Option(name="host", description="Name of the host system") public void setHost(java.lang.String host)
-
setLocalPath
@Option(name="localpath", description="OVFFile LocalPath") public void setLocalPath(java.lang.String localPath)
-
setVappName
@Option(name="vappname", description="New vApp Name") public void setVappName(java.lang.String vappName)
-
setDatastore
@Option(name="datastore", required=false, description="Name of the datastore to be used") public void setDatastore(java.lang.String datastore)
-
run
@Action public void run()
-
-