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 75 Results Sample cmbucontest
  • 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

    511 Downloads

    1 Favorite

    0 Comments

    Updated 4 years ago

  • vRO Workflow Single Instance Execution Enforcement

    Contributor Chris Dombrowski

    There have been numerous times when an automation solution requires that a particular primary workflow only have one instance executing at any one time. An example of this is a custom data collection ...
    vRealize Orchestrator vRO Workflow
    Download

    374 Downloads

    1 Favorite

    0 Comments

    Updated 4 years ago

  • Get ESXi ResourcePool

    Contributor Selvakumar Jaganathan

    Get ESXi Resource Pool using Compute Cluster.
    vSphere vRealize Automation vRealize Orchestrator Plug-in SDK JavaScript
    Download

    646 Downloads

    0 Comments

    Updated 4 years ago

  • Get vRA Reservation Object

    Contributor Selvakumar Jaganathan

    Get vRA Reservation Object by using Reservation Name as string.
    vRealize Automation vRealize Orchestrator Plug-in SDK JavaScript
    Download

    602 Downloads

    0 Comments

    Updated 4 years ago

  • vRO A Better lockAndWait Solution - LockAndSteal

    Contributor Chris Dombrowski

    This action is a lock and wait for the specified wait time (in seconds) If one owner keeps the lock beyond the specified wait time the lock is removed and the action tries to obtain the lock The vRO l ...
    vRealize Orchestrator vRealize Automation vRO Package
    Download

    382 Downloads

    1 Favorite

    0 Comments

    Updated 4 years ago

  • vRO Pass By Reference

    Contributor Chris Dombrowski

    This vRO Action inputs a string or property name, and a property set and replaces the any {property key} in braces included in the input string with the value of that property key. This is very handy, ...
    vRealize Orchestrator vRealize Automation vRO Package
    Download

    225 Downloads

    0 Comments

    Updated 4 years ago

  • Get vRA Catalog Resource of vCenter VM

    Contributor Surabhi Tandon

    Get vRA Catalog Resource of vCenter VM
    vRealize Orchestrator vRealize Orchestrator Plug-in SDK JavaScript
    Download

    322 Downloads

    0 Comments

    Updated 4 years ago

  • Get vAPI Endpoint for vCenter VM

    Contributor Erik Johnson

    Get the vAPI Endpoint for a vCenter VM in vRO
    vRealize Orchestrator Plug-in SDK JavaScript
    Download

    526 Downloads

    1 Favorite

    1 Comment

    Updated 4 years ago

  • Yet Another vRO vAPI vCenter Tagging Package

    Contributor Erik Johnson

    vRO package containing workflows and actions to manage vCenter tags and add/remove them from VMs. The core vAPI tagging actions were created using code from https://code.vmware.com/user/tnavarro1 and ...
    vRealize Orchestrator vRealize Orchestrator Plug-in SDK JavaScript
    Download

    387 Downloads

    0 Comments

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

    481 Downloads

    0 Comments

    Updated 4 years ago