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

SDK / Platform / Tool

  • App Modernization

  • Cloud Management

  • Compute Virtualization

  • Desktop & App Virtualization

  • Developer Tools

  • Digital Workspace

  • Hybrid Cloud & Data Center Infrastructure

  • Hyperconverged Infrastructure

  • Multi-Cloud Operations

  • Private & Hybrid Cloud

  • Storage & Availability

  • Virtual Cloud Networking

  • Other Platform

Contributor

Language

1 - 10 of 24 Results Sample vcenter
  • vCenter Roles

    Contributor Rob Nelson

    vCenter-roles Import pre-defined roles for common applications to access vCenter. The privileges for each role are stored in a JSON-format file as a list of privilege Ids (Get-VIPrivilege | Select Id) ...
    vSphere Management SDK PowerShell
    Download

    620 Downloads

    0 Comments

    Updated 11 months ago

  • Get or Create vRO Configuration Element

    Contributor Surabhi Tandon

    Returns the Configuration Element based on the given Configuration Category Path and Configuration Element Name.  If it does not exist, Configuration Category and Configuration Element are created.  I ...
    vRealize Orchestrator JavaScript
    Download

    480 Downloads

    0 Comments

    Updated 4 years ago

  • Search vSphere Entities by Name

    Contributor Surabhi Tandon

    vRO actions to search entities in vCenter by name.  The code uses Property Collector that allows faster retrieval times even in large environments.  Valid for all versions of vCenter.  Possible use ca ...
    vRealize Orchestrator Plug-in SDK vRealize Orchestrator JavaScript
    Download

    438 Downloads

    0 Comments

    Updated 4 years ago

  • Reboot VM and Wait for VMWare Tools

    Contributor Jim Sadlek

    Changed a couple issues found with this original solution: https://code.vmware.com/samples/1143/reboot-guest-os-on-vsphere-vm-and-wait-#code First, the enum constant is no longer valid in vRO 8.x.  Se ...
    vRealize Orchestrator vRO Workflow
    Download

    190 Downloads

    0 Comments

    Updated 2 years ago

  • Powercli script for disabling SLP Service on 6.7 and 6.5 vCenter Servers as per VMware KB76372

    Contributor Sivakumar E. S

    This script works at VC level, where it will iterate through all the Datacenters and clusters in the VC and disable SLP service on all the available hosts. Script will ensure Firewall Exception RuleSe ...
    VMware PowerCLI PowerShell
    Download

    289 Downloads

    0 Comments

    Updated 11 months ago

  • generate vc support Bundle

    Contributor Lokesh HK

    This sample helps to create the vCenter support bundle. At the end of execution, the script provides the link to download the vc support bundle. Sample usage generate-vc-suuport_bundle.py --vc_ip \\\' ...
    vSphere Automation SDK for REST Python
    Download

    78 Downloads

    0 Comments

    Updated 7 months ago

  • Get Cluster by Name

    Contributor Trisha Navarro

    Finds 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
    Download

    548 Downloads

    0 Comments

    Updated 5 years ago

  • Is HostSystem Compatible for a vCenter VM

    Contributor Trisha Navarro

    Use VM-host compatibility checker, which is native to the vCenter plugin, to determine if a host is compatible with a given VM and resource pool. Useful for host-specific placement when cloning direct ...
    vRealize Orchestrator Plug-in SDK JavaScript
    Download

    679 Downloads

    0 Comments

    Updated 5 years ago

  • Get the Cluster of a vCenter VM

    Contributor Trisha Navarro

    Returns the cluster of a given vCenter VM
    vRealize Orchestrator Plug-in SDK JavaScript
    Download

    1346 Downloads

    0 Comments

    Updated 5 years ago

  • Get folder of a vCenter VM

    Contributor Trisha Navarro

    Returns the VM folder of a given vCenter VM
    vRealize Orchestrator Plug-in SDK JavaScript
    Download

    1309 Downloads

    0 Comments

    Updated 5 years ago