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 - 7 of 7 Results Sample cluster
  • Cluster advanced settings inconsistency check

    Contributor Robert Nordell

    Check your cluster for inconsistent configuration of advanced settings.
    VMware PowerCLI PowerShell
    Download

    130 Downloads

    0 Comments

    Updated 1 year ago

  • Retrieve list of clusters ordered by number of cpu

    Contributor Nilmax Moura

    This sample code retrieves a list of clusters ordered by the number of CPUs How To Run In order to run this sample code you must provide three arguments: [1] The server name or IP address [2] The user ...
    vSphere Management SDK Java
    Download

    627 Downloads

    0 Comments

    Updated 6 years ago

  • Shows the name of a cluster containing a given VM

    Contributor Joshua Levy

    This sample code retrieves a list of clusters ordered by the number of CPUs How To Run In order to run this sample code you must provide four arguments: [1] The server name or IP address [2] The user ...
    vSphere Management SDK Java
    Download

    724 Downloads

    0 Comments

    Updated 6 years ago

  • Docker Swarm as a Service - Blueprint

    Contributor Ryan Kelly

    The easy button for Docker Swarm on vSphere   Detailed guide here http://www.vmtocloud.com/the-docker-swarm-blueprint-for-vra7-is-here/
    vRealize Automation vRA Blueprint
    Download

    945 Downloads

    0 Comments

    Updated 6 years 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

    500 Downloads

    0 Comments

    Updated 4 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

    1254 Downloads

    0 Comments

    Updated 4 years ago

  • Get ESXi Host to Place the VM - DRS Placement.

    Contributor Selvakumar Jaganathan

    Get the ESXi host to place a vm when moving VM to different to cluster via API.  This is part of changing VM's vRA Reservation when VMs moved/migrated to different cluster.
    vRealize Automation vRealize Orchestrator Plug-in SDK JavaScript
    Download

    452 Downloads

    1 Favorite

    0 Comments

    Updated 3 years ago