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.

Can't find the sample you're looking for? Search and browse for sample requests made by VMware community members, or click the "Add New Request" button to make your own requests. You can also help other members in the community out by assigning requests to yourself so you can write a sample that fulfills the request.

Filters

SDK / Platform / Tool

  • Automation Tools

  • Cloud Management

  • Compute Virtualization

  • Developer Tools

  • Digital Workspace

  • Hyperconverged Infrastructure

  • Virtual Cloud Networking

Language

1 - 10 of 73 Results Sample Request
  • Report on Cluster Capacity with Python

    Contributor Pinball

    I have and existing PowerCli script that reports on a list of capacity value for every cluster in our vc. (Cluster Name, # Hosts in cluster, # CPU's, # of cores, Memory, Virtual on, virtual off, templ ...
    vCloud Suite Python Python

    REQUESTED

    2 Solutions

    3 Favorites

    2 Comments

    Updated 3 years ago

  • Cluster Capacity script

    Contributor Pinball

    I have a need to do a Cluster Capacity based report daily, up to now i've been using Powercli for this but as our environment grows the current scripts takes over 6 hours to complete for our 10 vc's c ...
    vCloud Suite Python Python

    REQUESTED

    0 Solutions

    1 Favorite

    0 Comments

    Updated 3 years ago

  • Windows 10 Desktop Deployment

    Contributor wpinch

    Looking into Windows10 Virtual Desktop Deployment BluePrint for VRA Example for QA/Production
    vRealize Automation vRA Blueprint

    REQUESTED

    0 Solutions

    1 Favorite

    0 Comments

    Updated 2 years ago

  • How to convert type of variables

    Contributor junghuahsu

    Is there any way to convert string to vCACCAFE:Catalogitem or NSX:Connection or other complex data type in vRO?
    vRealize Orchestrator vRealize Automation vRealize Automation JavaScript

    REQUESTED

    0 Solutions

    1 Favorite

    2 Comments

    Updated 1 year ago

  • Need a sample code to specify datastore capacity

    Contributor Sainath_Rao

    Hi, We need a sample code to specify the Datastore capacity in creation of Datastore process. .NET vSphere SDK sample code. Thanks, Sainath
    vSphere Management C#

    REQUESTED

    0 Solutions

    1 Favorite

    1 Comment

    Updated 3 years ago

  • vRA Automation Provisioning WebSphere

    Contributor akitkitiwiriya

    Hi All, I have a customer in Thailand, who is large banking in Thailand. which they are using the websphere (middleware). So the last time as I taking with our customer they want to using vRealize Aut ...
    vRealize Orchestrator vRealize Automation vRA Blueprint vRO Workflow vRO Package

    REQUESTED

    0 Solutions

    0 Comments

    Updated 3 years ago

  • Windows pass through authentication

    Contributor marktoshack

    Example of using pyVim.SmartConnect with mechanism="sspi" to provide windows passthrough authentication. I have pieced together this so far, but it doesn-t work. import sspi import pyVim.connect from ...
    vSphere Automation Python Python

    REQUESTED

    0 Solutions

    0 Comments

    Updated 3 years ago

  • Reboot Guest VM then check vmware tools then send status email

    Contributor navaezj

    Looking for a sample that will reboot guest VMs, wait 30 minutes, check vmware tools status on guest, then send status report.
    vSphere Web Client vSphere PowerCLI vRealize Orchestrator PowerShell

    REQUESTED

    0 Solutions

    1 Comment

    Updated 2 years ago

  • Create and configure a distributed virtual switch

    Contributor dutch889

    There is workable code here - https://github.com/rreubenur/vmware-pyvmomi-examples/blob/master/create_dvs_and_dvport_group.py, for creating and configuring a dvs. It also creates port groups and add h ...
    vSphere Automation Python Python

    REQUESTED

    0 Solutions

    0 Comments

    Updated 3 years ago

  • Basic NSX Manager REST code in Java or Python

    Contributor joshualevy

    An example which shows how to connect with the NSX Manager REST Server. To make calls like this: https://{IP}:443/api/1.0/appliance-management/global/info I'd like to see an example of how to do the u ...
    Other Platform Java Python

    REQUESTED

    1 Solution

    0 Comments

    Updated 5 months ago