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
- vCollect Storage By Partition for each vCenterOverview: Many of projects I work on involve collecting an inventory of basic information about the #Disk_Path per VM in the environment per vCenter. VMware Code: https://code.vmware.com/samples/5120 ...vSphere VMware PowerCLI PowerShell
- Multiple Hypervisor Dashboard v2Designed in vROps 8.0 to show both your VMWare vSphere environment and your Microsoft Hyper-V estate. The standard vCenter adapter from VMware and the Hyper-V management pack (http://documentation.bl ...vRealize Operations Manager vRealize Ops Dashboard
- List TasksDemonstrates how to list tasks with given status Please install vSphere Automation Python SDK to run the sample: https://github.com/vmware/vsphere-automation-sdk-pythonvSphere Automation SDK for Python VMware Cloud on AWS Python
- Cancel TaskDemostrates how to cancel a running task in VMware Cloud on AWS. To run the sample, please first install vSphere Automation Python SDK: https://github.com/vmware/vsphere-automation-sdk-pythonVMware Cloud on AWS vSphere Automation SDK for Python VMware Cloud on AWS API Python
- Listing vSphere Alarms - Get-TriggeredAlarmThis function lists the triggered alarms for the specified entity in vCenter. More information available: https://blogs.vmware.com/PowerCLI/2019/11/new-vsphere-alarm-management.htmlVMware PowerCLI vSphere PowerShell
- vSphere 6.7 Rest API - get templates in content libraryI have been working with vCenter 6.7 Rest API. Customer ask to get templates from content library. Looked everywhere, but details could not be found. Decent amount of trial and error to get working ...vSphere Automation SDK for REST Shell Script
- vCollect All VMs details with Hosts Info for All vCenter... Overview: vCollect provides a PowerCLI scripts that produce infrastructure audit and reports of VMware SDDC (vSphere, NSX, vCloud DIrector, vRealize Automation) environments in CSV or Excel f ...vSphere PowerCLI PowerShell
- Connect To vSphere With Default Sddc PasswordA python sample that demonstrates how to connect to a vSphere in a SDDC using the initial cloud admin credentials. Install vSphere Automation Python SDK to run the sample: https://github.com/vmware/vs ...VMware Cloud on AWS API VMware Cloud on AWS Python
- Deploy OVF TemplateDemonstrates the workflow to deploy an OVF library item to a resource pool in VMware Cloud on AWS. Install vSphere Automation Python SDK to run the sample: https://github.com/vmware/vsphere-automation ...VMware Cloud on AWS API VMware Cloud on AWS vSphere Automation SDK for Python Python
- Organization OperationsPython sample for working with VMware Cloud on AWS Organizations. Install vSphere Automation Python SDK to run the sample: https://github.com/vmware/vsphere-automation-sdk-pythonVMware Cloud on AWS API vSphere Automation SDK for Python Python