Book Image

VMware NSX Cookbook

By : Bayu Wibowo, Tony Sangha
Book Image

VMware NSX Cookbook

By: Bayu Wibowo, Tony Sangha

Overview of this book

This book begins with a brief introduction to VMware's NSX for vSphere Network Virtualization solutions and how to deploy and configure NSX components and features such as Logical Switching, Logical Routing, layer 2 bridging and the Edge Services Gateway. Moving on to security, the book shows you how to enable micro-segmentation through NSX Distributed Firewall and Identity Firewall and how to do service insertion via network and guest introspection. After covering all the feature configurations for single-site deployment, the focus then shifts to multi-site setups using Cross-vCenter NSX. Next, the book covers management, backing up and restoring, upgrading, and monitoring using built-in NSX features such as Flow Monitoring, Traceflow, Application Rule Manager, and Endpoint Monitoring. Towards the end, you will explore how to leverage VMware NSX REST API using various tools from Python to VMware vRealize Orchestrator.
Table of Contents (19 chapters)
Title Page
Packt Upsell
Foreword
Contributors
Preface
Index

Using the REST API with the Postman REST client


In this recipe, we will use the Postman REST client to perform a REST API call to NSX. The Postman REST client can be downloaded here: https://www.getpostman.com/. Other alternative REST clients include the RESTClient Firefox add-on: https://addons.mozilla.org/en-US/firefox/addon/restclient/.

Getting ready

To use the NSX REST API, you must understand the general RESTful workflow, and then install and configure a REST client. The NSX Manager uses TCP port 443 for REST API requests, so you must verify that the ports are opened between the REST client and the NSX Manager. In addition to this, you must either use a trusted certificate or accept the self-signed certificate when making a REST API call to the NSX Manager.

How to do it...

This recipe is divided into two parts of REST API requests using the Postman REST API client: retrieving a configuration or information using HTTP GET, and creating a logical switch using HTTP POST.

Requesting the HTTP...