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
- Powercli script for compliance check of baseline with bulletinID as input - VC LevelThis script works at VC level, where it will iterate through all the Datacenters in that VC and provide the compliance report. What the script does: 1. Connects to the VC server 2. Creates a patch bas ...VMware PowerCLI PowerShell
- Powercli script for compliance check of baseline with bulletinID as input - Datacenter LevelThis powercli script works at the datacenter level. This takes datacenter name as the input and does a compliance check against that datacenter in a VC. What the script does: 1. Connects to the VC ser ...VMware PowerCLI PowerShell
- vCenter and vROPS Core Monitoring DashboardThis is a must-have dashboard for those who wish to monitor vCenter Appliance partition disk space usage and vROPs disk space usage filling up as well. Both are critical as it can lead to an outage o ...vRealize Operations Manager vRealize Ops Dashboard
- Get-STSCerts.ps1Retrieves the vCenter Security Token Service (STS) signing certificate. Per KB79248 "If the vCenter Server was deployed as version 6.5 Update 2 or later, the Security Token Service (STS) signing cert ...vSphere VMware PowerCLI PowerShell
- Get-VCSACerts.ps1... <# .NOTES Author: Mark McGill, VMware Last Edit: 5-4-2021 Version 1.3 .SYNOPSIS Returns vCenter certificate information for all VCSA certificates, and optio ...vSphere PowerShell
- vCenter Server SSL and TLS Security Protocol Configuration Command line ToolvCenter Server / SSL Security Protocol Configuration - Command line utility script utility package on how to automatically enable or disable SSLv3 protocol for 5.0 VC, VCVA ports (50U3g onwards) No ...Other Platform Python
- Assign a vCenter tag to a VM via VAPIAssign a vCenter tag to a VM via VAPIvRealize Orchestrator Plug-in SDK JavaScript
- Assign vCenter tags via VAPI using a single VAPI client to minimize session creationAssign vCenter tags via VAPI using a single VAPI client to minimize session creation. Always creates nonexistent tags, and optionally creates nonexistent tag categories.vRealize Orchestrator Plug-in SDK JavaScript
- Get all compatible Datastores for a vCenter Host and VMGet all compatible datastores for a given host, resource pool, and virtual machine. The datstore must have enough free storage space necessary for the VM, and must be accessible and not in an overall ...vRealize Orchestrator Plug-in SDK JavaScript
- Get Cluster by NameFinds and returns the vCenter ClusterComputeResource with the given name, case-insensitive. Also demonstrates how to do a case-insensitive search via xpath, as supported by the Javascript version of v ...vRealize Orchestrator Plug-in SDK JavaScript