Tagapi

Using OAuth for VMware Cloud Authentication

API calls towards VMware Cloud are typically done using refresh tokens. Most examples you can find about the VMC API are around refresh tokens. These are personally bound to a VMC user. Which makes sense, you are doing something (creating an SDDC, or getting info, etc.). But, what if you’re building a service against VMware Cloud and need all API calls not to be bound to an individual? That’s where OAuth apps come in.

I wanted to document my tinkering to get an OAuth app to work and retrieving information around SDDCs, using that way of authentication. 

Create OAuth App

Read more

NSX-T Manager: Increasing API requests per second

By default, the NSX-T Manager has a protection mechanism in place to prevent the API from being overloaded. This is a good thing, protecting the NSX-T Manager.

But, the increasing integrations into NSX-T, make it so that more and more products are using the NSX-T API to monitor or configure NSX (vRealize Network Insight, vRealize Operations, vRealize Automation, etc.). I’ve hit this limit several times and needed to push that limit up. 

The API Guide states that the default maximum API request number is 100 per second. In the guide, there’s a reference to the API call to change the … Read more

vRealize Network Insight 4.1 – What’s New – API Edition

While I have all new features and awesomeness of the new version of vRealize Network Insight; 4.1, covered in my official VMware blog post (still can’t believe I get to post there 😀 ), I thought I’d also cover what’s new in the API. As it’s quite a lot!

With Network Insight 4.1, the API version was updated to 1.1.1.

New Data Source Types

All the new data sources in 4.1 have also been made available in the API and all missing data sources from the 4.0 have also been added. This means you can add and otherwise manipulate F5 … Read more

Postman Collection for vRealize Network Insight APIs

When developing automation and using APIs, Postman is a very welcome tool. I use it to test out API calls and to make sure I format the calls correctly, before translating it to the code of whatever I’m working on.

Postman Collections are a library of API calls and all their available options for easy and quick access to every call you often use.

vRNI API

I’ve been using a half-baked Postman Collection for the API calls I’ve been doing to Network Insight, in order to develop PowervRNI and other things. It wasn’t complete by a long shot.

Earlier this … Read more

Getting Started with the NSX SD-WAN by VeloCloud API

As with any proper Software-Defined solution, NSX SD-WAN by VeloCloud has an API to automate against. To be precise, the Orchestrator has an API to automate against. As you might have read in my post about the NSX SD-WAN by VeloCloud Basics, the Orchestrator is the centralized management interface of the SD-WAN.

The Orchestrator provides you with a JSON-RPC API, which means you call it over HTTPS. It’s not a RESTful API, as all calls go through a POST query and authentication is handled in a somewhat strange way (more on that later). There are about 140 API endpoints … Read more

vRealize Network Insight 3.8 – What’s new in the API?

One of my favorite products has just dropped a new version. vRealize Network Insight 3.8 (vRNI) has just hit the downloads and has a bunch of cool new stuff.

vRNI 3.6 introduced a public API with which you can do most of the day-2 operations. vRNI 3.7 didn’t bring any changes to the API, but 3.8 does. Below are the changes in the API version 1.1.0.

Fetching info in bulk

Version 1.0.0 had endpoints to grab information from entities (VMs, hosts, firewall rules, etc), but it was a bit tedious. You had to request a paged list of entities … Read more

Storing the VMware NSX config in version control

Almost any organization that I’ve had the pleasure of talking with, uses Git either for code repositories where their developers work or for doing version control on their infrastructure systems. Git is an excellent version control tool and is widely used for both developers and also infrastructure configuration. This post goes into how to put the VMware NSX configuration into version control using Git.

Not all infrastructure components (server systems, network devices, etc) have a proper audit log on what happens in the configuration and who is doing what exactly. This is where version control can lend a helping hand … Read more

© 2021 Lostdomain

Theme by Anders NorénUp ↑