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
- VCF Create DomainUse the provided script to create domain in SDDC environment, read through readme.txt before execution.VMware Cloud Foundation Python
- VCF Create ClusterUse the provided script to create cluster in SDDC environment, read through readme.txt before execution.VMware Cloud Foundation Python
- VCF Host CommissionUse the provided python script and the sample host commission spec to commission hosts in your SDDC Environment.VMware Cloud Foundation Python
- VCF on VxRail Scripts for import second and subsequent cluster to the domainVCF on VxRail Scripts for import second and subsequent cluster to the domain Copy the contents of the zip to sddc-manager Replace cluster_creation_spec_vxrail.json with the payload to import secondar ...VxRail VMware Cloud Foundation Python
- VCF on VxRail Scripts for create VCVCF on VxRail Scripts for create VC Copy the contents to sddc-manager Replace the domain_creation_spec_vxrail.json with create vc payload Execute python3 create_domain_vxrail.py <hostname> <username ...VxRail VMware Cloud Foundation Python
- VCF on VxRail Scripts for Importing Primary ClusterVCF on VxRail Scripts for Importing Primary Cluster Copy the directory contents to sddc-manager, Update the update_domain_spec_vxrail.json with import cluster payload Execute python3 update_domain_ ...VMware Cloud Foundation VxRail Python
- VCF Host DecommissionVCF Host Decommission : Removing hosts from the SDDC Manager inventory is called decommissioning. If you want to re-use a host in a different workload domain, you must decommission, re-image, and comm ...VMware Cloud Foundation Python
- VCF Get Network of Network PoolVCF get Network of Network pool : A network pool is a collection of subnets within an layer-2 network domain. Depending on the storage option, it includes information about subnets reserved for the vM ...VMware Cloud Foundation Python
- VCF Get Network PoolsVCF Get Network Pools : A network pool is a collection of subnets within an layer-2 network domain. Depending on the storage option, it includes information about subnets reserved for the vMotion and ...VMware Cloud Foundation Python
- VCF Get HostsVCF Get Hosts : To get the details about all the hosts in the SDDC Manager inventory, including CPU utilization and memory usage across all hosts. Use the provided script to fetch hosts details, read ...VMware Cloud Foundation Python