WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud
  • Tanzu
    • Application Modernization
    • Tanzu services
    • Tanzu Community Edition
    • Tanzu Kubernetes Grid
    • vSphere with Tanzu
  • Home Lab
  • Nested Virtualization
  • 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. John 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
    • John 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

Author

William Lam is a Senior Staff Solution Architect working in the VMware Cloud team within the Cloud Infrastructure Business Group (CIBG) at VMware. He focuses on Cloud Native technologies, Automation, Integration and Operation for the VMware Cloud based Software Defined Datacenters (SDDC)

Connect

  • Email
  • GitHub
  • LinkedIn
  • RSS
  • Twitter
  • Vimeo

Recent

  • Changing the default HTTP(s) Reverse Proxy Ports on ESXi 8.0 03/22/2023
  • Quick Tip - How to download ESXi ISO image for all releases including patch updates? 03/15/2023
  • SSD with multiple NVMe namespaces for VMware Homelab 03/14/2023
  • Is my vSphere Cluster managed by vSphere Lifecycle Manager (vLCM) as a Desired Image or Baseline? 03/10/2023
  • Interesting VMware Homelab Kits for 2023 03/08/2023

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 © 2023