Using VMware.Sdk.Vcf.Installer: Commands for VCF Installer in PowerCLI

VCF PowerCLI 9.0 now includes a module called VMware.Sdk.Vcf.Installer, this modules contains auto-generated cmdlets to support VCF Installer Public APIs. Use can use this post as a quick reference guide.

Connecting to a VCF Installer Instance with Local Credentials

  1. Start a PowerShell session.

  2. Connect to a VCF Installer instance using local credentials by running the following command:

1Connect-VcfInstallerServer -Server sfo-ins01.sfo.rainpole.io -User admin@local -Password VMw@re1!VMw@re1!
  1. Once connected the following information is stored in $defaultInstallerConnections.
 1ServiceUri     : https://sfo-ins01.sfo.rainpole.io/
 2SessionSecret  : <SessionSecret>
 3User           : admin@local
 4IsConnected    : True
 5Id             : /VcfInstallerServer=admin@[email protected]:443/
 6Name           : sfo-ins01.sfo.rainpole.io
 7Uid            : /VcfInstallerServer=admin@[email protected]:443/
 8ProductVersion : 9.0.0.0.24703748
 9ServerUri      : https://sfo-ins01.sfo.rainpole.io/
10UUID           : /VcfInstallerServer=admin@[email protected]:443/
11Port           : 443
  1. Disconnect from a VCF Installer instance by running the following command:
1Disconnect-VcfInstallerServer -Server sfo-ins01.sfo.rainpole.io

Display All VCF Installer GET Command Details

  1. Start a PowerShell session.

  2. Display all GET cmdlets supported in VMware.Sdk.Vcf.Installer by running the following command:

1Get-VcfInstallerOperation -Method Get | Select-Object CommandInfo, Path, Method
  1. Output for all GET cmdlets in VMware.Sdk.Vcf.Installer.
Command InfoPathMethod
Invoke-VcfInstallerGetBundle/v1/bundles/{id}GET
Invoke-VcfInstallerGetBundleDownloadStatus/v1/bundles/download-statusGET
Invoke-VcfInstallerGetBundles/v1/bundlesGET
Invoke-VcfInstallerGetBundlesForSkipUpgrade/v1/bundles/domains/{id}GET
Invoke-VcfInstallerGetCeipStatus/v1/system/ceipGET
Invoke-VcfInstallerGetDepotSettings/v1/system/settings/depotGET
Invoke-VcfInstallerGetDepotSyncInfo/v1/system/settings/depot/depot-sync-infoGET
Invoke-VcfInstallerGetCustomPatches/v1/releases/domains/{domainId}/custom-patchesGET
Invoke-VcfInstallerGetCustomPatchesBySku/v1/releases/custom-patchesGET
Invoke-VcfInstallerGetReleaseComponentsBySku/v1/releases/{sku}/release-componentsGET
Invoke-VcfInstallerGetProxyConfiguration/v1/system/proxy-configurationGET
Invoke-VcfInstallerGetFutureReleases/v1/releases/domains/{domainId}/future-releasesGET
Invoke-VcfInstallerGetReleases/v1/releasesGET
Invoke-VcfInstallerGetSystemRelease/v1/releases/systemGET
Invoke-VcfInstallerGetApplianceInfo/v1/system/appliance-infoGET
Invoke-VcfInstallerGetSystemConfiguration/v1/systemGET
Invoke-VcfInstallerGetSystemVcfManagementComponents/v1/system/vcf-management-componentsGET
Invoke-VcfInstallerGetTask/v1/tasks/{id}GET
Invoke-VcfInstallerGetTasks/v1/tasksGET
Invoke-VcfInstallerGetTrustedCertificates/v1/sddc-manager/trusted-certificatesGET
Invoke-VcfInstallerGetLatestSddcSpecValidation/v1/sddcs/validations/latestGET
Invoke-VcfInstallerGetLatestSddcTask/v1/sddcs/latestGET
Invoke-VcfInstallerGetSddcSpecByID/v1/sddcs/{id}/specGET
Invoke-VcfInstallerGetSddcSpecValidation/v1/sddcs/validations/{id}GET
Invoke-VcfInstallerGetSddcSpecValidations/v1/sddcs/validationsGET
Invoke-VcfInstallerGetSddcTaskByID/v1/sddcs/{id}GET
Invoke-VcfInstallerGetSddcTasks/v1/sddcsGET
Invoke-VcfInstallerGetVcfService/v1/vcf-services/{id}GET
Invoke-VcfInstallerGetVcfServices/v1/vcf-servicesGET

Display All VCF Installer POST Command Details

  1. Start a PowerShell session.

  2. Display all POST cmdlets supported in VMware.Sdk.Vcf.Installer by running the following command:

1Get-VcfInstallerOperation -Method Post | Select-Object CommandInfo, Path, Method
  1. Output for all POST cmdlets in VMware.Sdk.Vcf.Installer.
Command InfoPathMethod
Invoke-VcfInstallerUploadBundle/v1/bundlesPOST
Invoke-VcfInstallerCreateToken/v1/tokensPOST
Invoke-VcfInstallerAddTrustedCertificate/v1/sddc-manager/trusted-certificatesPOST
Invoke-VcfInstallerDeploySddc/v1/sddcsPOST
Invoke-VcfInstallerDiscoverVcenter/v1/sddcs/vcenter-discoveryPOST
Invoke-VcfInstallerDiscoverVcfOps/v1/sddcs/vcfops-discoveryPOST
Invoke-VcfInstallerGetInstallerType/v1/sddcs/installer-modePOST
Invoke-VcfInstallerGetNetworkConfigProfiles/v1/sddcs/network-config-profilesPOST
Invoke-VcfInstallerValidateSddcSpec/v1/sddcs/validationsPOST

Display All VCF Installer PUT Command Details

  1. Start a PowerShell session.

  2. Display all PUT cmdlets supported in VMware.Sdk.Vcf.Installer by running the following command:

1Get-VcfInstallerOperation -Method Put | Select-Object CommandInfo, Path, Method
  1. Output for all PUT cmdlets in VMware.Sdk.Vcf.Installer.
Command InfoPathMethod
Invoke-VcfInstallerUpdateDepotSettings/v1/system/settings/depotPUT

Display All VCF Installer PATCH Command Details

  1. Start a PowerShell session.

  2. Display all PATCH cmdlets supported in VMware.Sdk.Vcf.Installer by running the following command:

1Get-VcfInstallerOperation -Method Patch | Select-Object CommandInfo, Path, Method
  1. Output for all PATCH cmdlets in VMware.Sdk.Vcf.Installer.
Command InfoPathMethod
Invoke-VcfInstallerStartBundleDownloadByID/v1/bundles/{id}PATCH
Invoke-VcfInstallerSetCeipStatus/v1/system/ceipPATCH
Invoke-VcfInstallerSyncDepotMetadata/v1/system/settings/depot/depot-sync-infoPATCH
Invoke-VcfInstallerUpdateProxyConfiguration/v1/system/proxy-configurationPATCH
Invoke-VcfInstallerUpdateSystemConfiguration/v1/systemPATCH
Invoke-VcfInstallerRetryTask/v1/tasks/{id}PATCH
Invoke-VcfInstallerRefreshAccessToken/v1/tokens/access-token/refreshPATCH
Invoke-VcfInstallerRetrySddc/v1/sddcs/{id}PATCH

Display All VCF Installer DELETE Command Details

  1. Start a PowerShell session.

  2. Display all DELETE cmdlets supported in VMware.Sdk.Vcf.Installer by running the following command:

1Get-VcfInstallerOperation -Method Delete | Select-Object CommandInfo, Path, Method
  1. Output for all DELETE cmdlets in VMware.Sdk.Vcf.Installer.
Command InfoPathMethod
Invoke-VcfInstallerDeleteBundle/v1/bundles/{id}DELETE
Invoke-VcfInstallerDeleteDepotSettings/v1/system/settings/depotDELETE
Invoke-VcfInstallerCancelTask/v1/tasks/{id}DELETE
Invoke-VcfInstallerInvalidateRefreshToken/v1/tokens/refresh-tokenDELETE
Invoke-VcfInstallerDeleteTrustedCertificate/v1/sddc-manager/trusted-certificates/{alias}DELETE

Posts in this Series