<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>API on Why did IT fail</title><link>https://www.why-did-it.fail/tags/api/</link><description>Recent content in API on Why did IT fail</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>Copyright © 2026 Dominik Textoris (formerly Zorgnotti). All Rights Reserved.</copyright><lastBuildDate>Mon, 18 Sep 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://www.why-did-it.fail/tags/api/index.xml" rel="self" type="application/rss+xml"/><item><title>Quicknote - Finding state information in the NSX-T Policy API</title><link>https://www.why-did-it.fail/blog/2023-02-nsxt-api-lrp-quicknote/</link><pubDate>Mon, 18 Sep 2023 00:00:00 +0000</pubDate><guid>https://www.why-did-it.fail/blog/2023-02-nsxt-api-lrp-quicknote/</guid><description>A collegue approached me with a customer request that concerned the NSX-T APIs. More specifically the customer is already using the NSX-T API in management mode but didn&amp;rsquo;t find the equivalent in the policy API.
Doing my own research, I also failed to find the API right away. This post is basicially a reminder to check on the &amp;ldquo;realized&amp;rdquo; state and get the head around the desired state of the NSX-T policy API.</description></item><item><title>Howto - Query host Driver and Firmware via vCenter API</title><link>https://www.why-did-it.fail/blog/2022-05-how-to-query-hcl-api/</link><pubDate>Wed, 12 Oct 2022 00:00:00 +0000</pubDate><guid>https://www.why-did-it.fail/blog/2022-05-how-to-query-hcl-api/</guid><description>Yet again, customer questions make the best blog posts. This time, it&amp;rsquo;s about retrieving the firmware and drivers from an ESXi host.
So far, the customer uses esxcli which required either PowerCLI or direct SSH access, both were not the preferred choices in this case.
High-level overview Starting with vSphere 7, vSphere Lifecycle Manager (vLCM) can handle this task. This blog post will show you how to create a HCL report for a given host which contains all the required information about firmware and drivers, as well as the bonus information about the support status of the system and devices.</description></item><item><title>Howto - Attach an ISO file from a Content Library</title><link>https://www.why-did-it.fail/blog/2022-04-howto-attatch-clib-iso/</link><pubDate>Thu, 14 Jul 2022 00:00:00 +0000</pubDate><guid>https://www.why-did-it.fail/blog/2022-04-howto-attatch-clib-iso/</guid><description>A few days ago I was asked by a customer on how to attach an ISO file to a VM using RestAPI calls in the vCenter. Having never done this before I had a look at the problem today and want to share the steps with you.
High-level overview Assuming you uploaded the ISO file to the content library prior to reading this, you need to obtain three information before you can attach an ISO file:</description></item><item><title>Tagging the vCenter (object)</title><link>https://www.why-did-it.fail/blog/2021-03-tag-vcenter-object/</link><pubDate>Tue, 16 Mar 2021 00:00:00 +0000</pubDate><guid>https://www.why-did-it.fail/blog/2021-03-tag-vcenter-object/</guid><description>I am working on enhancing my vSphere release tagging script with the ability to tag the vCenter with a human-readable release name. As shown in the screenshot, it&amp;rsquo;s easy enough in the UI.
Tags applied to the vCenter in the UI However, in PowerCLI there is no commandlet like get-vcenter. After many tries I gave up trying to force the object returned from
$global:DefaultVIServers[0] to accept any tag-related operations. Today, I had the idea of working backwards from the assigned tags with Get-TagAssignment</description></item><item><title>Tagging ESXi hosts with canonical release names</title><link>https://www.why-did-it.fail/blog/2021-02-set-esxi-release-names-with-tags/</link><pubDate>Fri, 05 Mar 2021 00:00:00 +0000</pubDate><guid>https://www.why-did-it.fail/blog/2021-02-set-esxi-release-names-with-tags/</guid><description>Update [2022-10-17] The VMware APIs for the KnowledgeBase have introduced a breaking change. This means the releases can no longer be updated without further development.
Update [2021-03-09] The repository has been renamed to VMware-vSphere-Release-Tagging as the future scope should include the vCenter as well. Thank you for all the feedback!
In this blog post I want to show you a practial application for the automation that I have built in my last project:</description></item></channel></rss>