NSX-T uses REST API calls, both internally and externally to CRUD (Create, Read, Update, Delete) resources.
This guide will outline the usage of these API call, best practices and troubleshooting steps.
VMware NSX
The API guide is structured similar to the NSX-T UI and features, with headings:
A note on the difference between Manager and Policy mode, Policy mode is the desired state, it send the configuration which is desired to Manager mode and Manager mode then implements the desired configuration. Manager API's start with /api and Policy mode API's start with /policy/api.
NSX-T has some limitation in regards the number of API call which it can handle, these are outlined at the start of the API guides for each version.
In general they are split into 3 categories:
The HTTP response code(s) are sent back to the client making the API calls, in a well behaving client, it should note the response and back-off and retry later. In the NSX-T manager, these response code(s) are logged in the manager log: /var/log/proxy/reverse-proxy.log, each manager's proxy service is responsible for maintaining its client limits.
Logs in proxy.log look like:
In NSX-T 4.0, the proxy was changed to envoy, local API calls now reside in /var/log/proxy/envoy_access_log.txt, prior to this change, local API calls where logged in /var/log/proxy/localhost_access_log.txt. The log /var/log/proxy/reverse-proxy.log is used on the API leader to proxy connections to other managers.
Known Issues:
REST API calls using a vIDM user fail in NSX-T
NSX-T slow API/UI response time
Logs show password in clear text from API calls made to the NSX-T Manager
Unable to access NSX-T UI and API failure following a change in Manager Node certificates
During an NSX-T Manager restore from backup, HTTPS service fails to start