WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Resources
    • Nested Virtualization
  • VMware Nostalgia
  • Apple
You are here: Home / Automation / Handy new vSphere 6.0 APIs to be aware of

Handy new vSphere 6.0 APIs to be aware of

02.04.2015 by William Lam // 2 Comments

The number of new platform capabilities and features in vSphere 6.0 is by far the largest that I have seen in awhile. One of the things I like to do with each new vSphere release is review all the new APIs that are now available to be consumed. Here are some of the new vSphere APIs that I think are interesting from an Automation point of view for vSphere 6 that I think folks should be aware of. I know for myself, there are several new vSphere APIs that I have personally been waiting for quite some time and I am glad to finally see them available for our customers, developers and partners. Depending on my free time, I may go into more details on how some of these new APIs work and provide some sample codes.

If you would like to see the complete list of new vSphere 6.0 APIs, be sure to check out the vSphere 6.0 API Reference Guide (available when vSphere 6.0 GA's which is Q1 of 2015) which has a "What's New" section on all the new Managed Objects, Methods, Properties, etc.

CertificateManager - API to deploy and refresh VMCA (VMware Certificate Authority) SSL Certificates for ESXi hosts

  • CertMgrRefreshCACertificatesAndCRLs_Task
  • CertMgrRefreshCertificates_Task
  • CertMgrRevokeCertificates_Task

ClusterEVCManager - API to finally manage and configure EVC (Enhanced vMotion Compatibility) for a vSphere Cluster

  • CheckAddHostEvc_Task
  • CheckConfigureEvcMode_Task
  • ConfigureEvcMode_Task
  • DisableEvcMode_Task

IoFilterManager - API to manage the new IO Filter capability

  • InstallIoFilter_Task
  • QueryDisksUsingFilter
  • QueryIoFilterInfo
  • QueryIoFilterIssues
  • ResolveInstallationErrorsOnCluster_Task
  • ResolveInstallationErrorsOnHost_Task
  • UninstallIoFilter_Task
  • UpgradeIoFilter_Task

ClusterComputeResource - API to quickly lookup all the affinity and anti-affinity rules for a VM

  • FindRulesForVm

VSAN 6.0 / VVOL / NFS v4.1 APIs - Please take a look here

HostStorageSystem 

  • Marking a Disk device as either Local or Remote
    • MarkAsLocal_Task
    • MarkAsNonLocal_Task
  • Marking a Disk device as either an SSD or Magnetic Disk
    • MarkAsNonSsd_Task
    • MarkAsSsd_Task
  • Turn On of Off the LED on supported Disk device
    • TurnDiskLocatorLedOn_Task
    • TurnDiskLocatorLedOff_Task
  • VMFS UNMAP operation
    • UnmapVmfsVolumeEx_Task

HostCertificateManager - API to manage and update custom CA signed SSL Certificates on ESXi hosts

  • GenerateCertificateSigningRequest
  • GenerateCertificateSigningRequestByDn
  • InstallServerCertificate
  • ListCACertificateRevocationLists
  • ListCACertificates
  • ReplaceCACertificatesAndCRLs

HostActiveDirectoryAuthentication - API to manage Smart Card Authentication on ESXi hosts

  • DisableSmartCardAuthentication
  • EnableSmartCardAuthentication
  • InstallSmartCardTrustAnchor
  • ListSmartCardTrustAnchors
  • RemoveSmartCardTrustAnchor
  • RemoveSmartCardTrustAnchorByFingerprint
  • ReplaceSmartCardTrustAnchors

HostAccessManager - API to manage new Lockdown Mode capabilities and modify System Users

  • ChangeAccessMode
  • ChangeLockdownMode
  • QueryLockdownExceptions
  • QuerySystemUsers
  • RetrieveHostAccessControlEntries
  • UpdateLockdownExceptions
  • UpdateSystemUsers

VirtualMachine

  • Enable SMP-FT for VM
    • CreateSecondaryVMEx_Task
  • Send NMI (Non-Masking Interrupt) request to VM
    • SendNMI

GuestWindowsRegistryManager - API to manage registry keys for Windows Guest OSes

  • CreateRegistryKeyInGuest
  • DeleteRegistryKeyInGuest
  • DeleteRegistryValueInGuest
  • ListRegistryKeysInGuest
  • ListRegistryValuesInGuest
  • SetRegistryValueInGuest

More from my site

  • When to use Move-VM cmdlet vs xMove.ps1 script for performing Cross vCenter vMotions?
  • Cross vCenter Server operations (clone / migrate) between versions of vSphere 6.x
  • Remotely query an ESXi host without adding it to vCenter Server
  • Automating Cross vCenter vMotion (xVC-vMotion) between the same & different SSO Domain
  • New vSphere 6.0 API for configuring SMP-FT

Categories // Automation, vSphere 6.0 Tags // vSphere 6.0, vSphere API

Comments

  1. *protectedJohn says

    02/27/2020 at 1:07 pm

    Hi William,

    I've been looking everywhere online and can't seem to find a straight answer, perhaps you can help. In the HostCertificateManager API, is there a missing NotifyAffectedServices method? I see this method in the vRO api documentations and can implement it within vRO (http://vroapi.com/Class/VC/6.5.0/VcHostCertificateManager). However, the mob doesn't have it and any API SDK i look at doesn't have it.

    How does vRO implement this? Is it a hidden internal method, and if so, are we still able to call it?

    Reply
    • *protectedJohn says

      02/27/2020 at 1:29 pm

      Nevermind, it was actually a hidden/internal method which is why it's not in any documentation. You can invoke it via the mob : mob/?moid=ha-certificate-manager-2485&method=notifyAffectedServices

      Reply

Thanks for the comment!Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
  • Quick Tip - Validating Broadcom Download Token  05/01/2025
  • Supported chipsets for the USB Network Native Driver for ESXi Fling 04/23/2025
  • vCenter Identity Federation with Authelia 04/16/2025
  • vCenter Server Identity Federation with Kanidm 04/10/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025