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

Introduction


VMware NSX has a northbound REST API that is publicly accessible and documented. The NSX REST API runs on top of NSX Manager and is based on REST concepts. The other NSX APIs are EPSec, API, and NetX for high-touch partners that are accessible via the VMware developer program. There are a few NSX operations that cannot be performed through GUI and are only accessible via the REST API. This NSX REST API can be consumed directly or indirectly from:

  • Cloud Management Tools, such as VMware, vRealize Automation, VMware vCloud Director, and OpenStack
  • DevOps, configuration management, and orchestration tools, such as VMware vRealize Orchestrator, Ansible, Puppet, and Chef
  • Programming languages, such as Python, Ruby, and Powershell, or a CLI tool, such as cURL:

NSX only accepts HTTPS over TCP/443 and does not accept HTTP due to it not being an encrypted protocol; both FQDN and the IP address of the NSX Manager virtual appliance can be used to make REST API requests. The following is the...