@Sample(name="ovf-manager-import-vapp-from-url",
description="This class can be used import or deploy an OVF Appliance from the specified URL.\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\nmust be extracted from firstChild node\n")
public class OVFManagerImportVAppFromUrl
extends ConnectedVimServiceBase
This class can be used import or deploy an OVF Appliance from the specified URL. 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 urlpath [required] OVFFile urlpath vappname [required] New vApp Name datastore [optional] Name of the datastore to be used Command Line: run.bat com.vmware.vapp.OVFManagerImportVAppFromUrl --url [webserviceurl] --username [username] --password [password] --host [hostname] --urlpath [OVFFile URL Path] --vappname [New vApp Name]
ConnectedVimServiceBase.ConnectionExceptionPROP_ME_NAME, SVC_INST_NAME| Constructor and Description |
|---|
OVFManagerImportVAppFromUrl() |
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
void |
setDatastore(java.lang.String datastore) |
void |
setHost(java.lang.String host) |
void |
setUrlPath(java.lang.String urlPath) |
void |
setVappName(java.lang.String vappName) |
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection@Option(name="host",
description="Name of the host system")
public void setHost(java.lang.String host)
@Option(name="urlpath",
description="OVFFile urlpath")
public void setUrlPath(java.lang.String urlPath)
@Option(name="vappname",
description="New vApp Name")
public void setVappName(java.lang.String vappName)
@Option(name="datastore",
required=false,
description="Name of the datastore to be used ")
public void setDatastore(java.lang.String datastore)
@Action public void run()