Parameters: url [required] : url of the web service username [required] : username for the authentication password [required] : password for the authentication entityname [required] : name of the inventory object - a managed entity foldername [required] : name of folder to move inventory object into Command Line: Move an inventory object into the target folder: run.bat com.vmware.general.Move --url [webserviceurl] --username [username] --password [password] --entityname [inventory object name] --foldername [target folder name] VMware vSphere Web Services Java Samples This sample was originally released as a part of vSphere 6.0 under license terms that contained a provision that disallowed redistribution in source form
Move.java
There are 3 parameters to specify: Source: the ova file to deploy Destination: the localtion on vCenter where to deploy. it is refered as a management object by its id. For instance, deploying vm in the resource tool moref=vim.ResourcePool:resgroup-148 Options: determining what the vm is deployed like, hostname, IP address, admin user #managementobject #Apache2.0 #OpenVirtualizationFormatTool(ovf) #vCenter #deployment #ova #Java
Deploy-virtual-machines-of-ova-by-ovftool.java
1 Comment - no search term matches found in comments.
This is a sample management pack that collects data from SNMP v2 or SNMP v3 and adds the data to a device object. This sample can be used as a reference, or as a starting point for creating a new SNMP management pack
vmware-aria-operations-integration-sdk-main.zip
This is a sample management pack that collects data from MySQL and attaches the data to objects created by the MySQL management pack
Rename This sample demonstrates renaming a manged entity Parameters: url [required] : url of the web service username [required] : username for the authentication password [required] : password for the authentication entityname [required] : name of the inventory object - a managed entity newname [required] : new name of the inventory object - a managed entity Command Line: Rename a virtual machine VM to new name VM2 run.bat com.vmware.general --url [webserviceurl] --username [username] --password [password] --entityname VM --newname VM2 Rename a resource pool named Rp to new name pool java com.vmware.general --url [webserviceurl] --username [username] --password [password] --entityname Rp --newname pool VMware vSphere Web Services Java Samples This sample was originally released as a part of vSphere 6.0 under license terms that contained a provision that disallowed redistribution in source form
Rename.java
RemoveManagedObject This sample demonstrates Destroy or Unregister Managed Inventory Object like a Host, VM, Folder, etc Parameters: url [required] : url of the web service username [required] : username for the authentication password [required] : password for the authentication objtype [required] : type of managedobject to remove or unregister"); e.g. HostSystem, Datacenter, ResourcePool, Folder objname [required] : Name of the object operation [optional] : Name of the operation - [remove | unregister] Command Line: Remove a folder named Fold run.bat com.vmware.general.RemoveManagedObject --url [webserviceurl] --username [username] --password [password] --objtype Folder --objname Fold Unregister a virtual machine named VM1 run.bat com.vmware.general.RemoveManagedObject --url [webserviceurl] --username [username] --password [password] --objtype VirtualMachine --objname VM1 --operation unregister VMware vSphere Web Services Java Samples This sample was originally released as a part of vSphere 6.0 under license terms that contained a provision that disallowed redistribution in source form
RemoveManagedObject.java
Browser This sample prints managed entity, its type, reference value, property name, Property Value, Inner Object Type, its Inner Reference Value and inner property value Parameters: url [required] : url of the web service username [required] : username for the authentication password [required] : password for the authentication Command Line: run.bat com.vmware.general.Browser --url [webserviceurl] --username [username] --password [password] VMware vSphere Web Services Java Samples This sample was originally released as a part of vSphere 6.0 under license terms that contained a provision that disallowed redistribution in source form
Browser.java
GetUpdates This sample demonstrates how to use the PropertyCollector to monitor one or more properties of one or more managed objects. In particular this sample monitors all or one Virtual Machine for changes to some basic properties Parameters: url [required] : url of the web service username [required] : username for the authentication password [required] : password for the authentication vmname [optional] : name of the virtual machine (if not defined sample will get the updates for all the VM under VMfolder) Command Line: run.bat com.vmware.general.GetUpdates --url [webserviceurl] --username [username] --password [password] --vmname [vm name] VMware vSphere Web Services Java Samples This sample was originally released as a part of vSphere 6.0 under license terms that contained a provision that disallowed redistribution in source form
GetUpdates.java
Create This sample creates managed entity like Host-Standalone Cluster Datacenter, and folder Parameters: url [required] : url of the web service username [required] : username for the authentication password [required] : password for the authentication parentname [required] : specifies the name of the parent folder itemtype [required] : Type of the object to be added e.g
Create.java
"); username [required] : username for the authentication"); password [required] : password for the authentication"); extension [required] : Extension to be demonstrated [retrieveproperties | updates | filterspec | propertycollector] vmname [optional] : Name of the virtual machine maxobjects [optional] : The maximum number of ObjectContent data objects that should be returned in a single result updatetype [optional] : waitforupdates | checkforupdates| extension nooftasks [optional] : Number of tasks to be created Command Line: Retrieve Properties Extension run.bat com.vmware.general.PropertyCollector --url [webserviceurl] --username [username] --password [password] --extension retrieveproperties --maxobjects [maxobjects] Updates Extension run.bat com.vmware.general.PropertyCollector --url [webserviceurl] --username [username] --password [password] --extension updates --vmname [vm name] --updatetype [waitforupdates | checkforupdates| extension] Filter Spec Extension run.bat com.vmware.general.PropertyCollector --url [webserviceurl] --username [username] --password [password] --extension filterspec --vmname [vm name] --noofTasks [Number of tasks to be created] Property Collector Extension run.bat com.vmware.general.PropertyCollector --url [webserviceurl] --username [username] --password [password] --extension propertycollector VMware vSphere Web Services Java Samples This sample was originally released as a part of vSphere 6.0 under license terms that contained a provision that disallowed redistribution in source form
PropertyCollector.java