VMware Sample Exchange
Browse and download code samples from VMware as well as code samples contributed by the VMware community. Log in to Sample Exchange using your MyVMware credentials to submit requests for new samples, contribute your own samples, as well as propose a sample as a solution for open requests.
Disclaimer: All sample content and code in Sample Exchange is licensed to you by the sample's author. VMware does not guarantee the samples; they are provided "AS IS". Use of this site is subject to the VMware Community Terms of Use.
Browse the list below for code samples from VMware and the community. You can filter the list of samples by selecting a platform or language, or enter other search keywords above.
Filters
Type
SDK / Platform / Tool
Contributor
Language
- SDRSRulesSDRSRules This sample demonstrates how to Add/List/Modify/Delete the rules for an existing SDRS cluster. Parameters: url [required]: url of the web service. username [required]: username for the authe ...vSphere Management SDK Java
- CreateStorageDRSCreateStorageDRS This sample demonstrates how to create Storage DRS Parameters: url [required]: url of the web service. username [required]: username for the authentication password [required]: passwo ...vSphere Management SDK Java
- OVFManagerExportVAPPOVFManagerExportVAPP This sample demonstrates OVFManager. Exports VMDK's and OVF Descriptor of all VM's in the vApps Parameters: username [required]: username for the authentication password [required ...vSphere Management SDK Java
- SDRSRecommendationSDRSRecommendation This sample demonstrates how to Run the Storage DRS on a given SDRS cluster and show the list of recommendations generated by SDRS. Parameters url [required]: url of the web service ...vSphere Management SDK Java
- DeleteOneTimeScheduledTaskDeleteOneTimeScheduledTask This sample demonstrates deleting a scheduled task Parameters: url [required] : url of the web service username [required] : username for the authentication password [requir ...vSphere Management SDK Java
- CreateUserCreateUser The CreateUser class creates a user account and password stores them the local credential store. CreateUser should be used in conjunction with the {@link SimpleAgent} sample application onl ...vSphere Management SDK Java
- OneTimeScheduledTaskOneTimeScheduledTask This sample demonstrates creation of ScheduledTask using the ScheduledTaskManager Parameters: url [required] : url of the web service. username [required] : username for the authe ...vSphere Management SDK Java
- WeeklyRecurrenceScheduledTaskWeeklyRecurrenceScheduledTask This sample demonstrates creation of weekly recurring ScheduledTask using the ScheduledTaskManager Parameters: url [required] : url of the web service username [required] ...vSphere Management SDK Java
- SimpleAgentSimpleAgent The SimpleAgent class uses the local credential store to obtain user account and password information, for automated logon to the target host system. SimpleAgent can be used with {@link Cr ...vSphere Management SDK Java