WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Resources
    • Nested Virtualization
  • VMware Nostalgia
  • Apple
You are here: Home / Automation / How to retrieve the NSX-T Overview Info (SDDC Public IP, Appliance & Infra Subnet, etc.) in VMC?

How to retrieve the NSX-T Overview Info (SDDC Public IP, Appliance & Infra Subnet, etc.) in VMC?

02.08.2019 by William Lam // Leave a Comment

I recently a question from one of our VMware Cloud on AWS (VMC) field folks who was looking to programmatically retrieve the SDDC Public IP Address which is shown under the NSX-T Networking & Security Overview page within the VMC Console as shown in the screenshot below. 


This actually had me stumped for a bit as I was not able to find anything mentioned in the NSX-T Policy API documentation. My last resort before pinging the NSX Engineers was to use one of my favorite browser tool, Chrome Developer Tools, which allows me to inspect all requests made to a specific web page and can also be helpful in figuring out which REST APIs the UI is using.

It turns out for this particular page, the information was not actually coming from the NSX-T Policy API but rather from another endpoint and specifically /cloud-service/api/v1/infra/sddc-user-config which I am guessing has to do with the fact that some of this information is really AWS specific information such as the Public IP Address for example. In any case, once I realized what the endpoint was and that I could still use the VMC NSX-T Reverse Proxy to retrieve the details, it was pretty straight forward.

To demonstrate how this API works, I have created a new function called Get-NSXTOverviewInfo in my VMC NSX-T PowerShell Module as well as a quick shell script called list_vmc_nsxt_overview.sh using cURL.

Here is an example output of using the Get-NSXTOverviewInfo function:


In addition to the SDDC Public IP which can find under the vpn_internet_ips property field, you can also programmatically retrieve both the Management and Compute Gateway labels (mgw and cgw) which is needed when using other NSX-T Policy APIs. You can either hardcode these values as they would not change in VMC or you can programmatically retrieve them using this endpoint. The same goes for the provide_name property which has a value of vmc and other useful information such as the SDDC Appliance and Infrastructure Subnet can also be retrieved which is useful when setting up a VPN and/or Direct Connect to the SDDC.

Here is the exact same output using the shell script:

More from my site

  • Connecting to NSX-T Policy API using NSX-T Private IP in VMC
  • Using NSX-T Policy API to retrieve the Routing Table in VMC
  • NSX-T Policy API Explorer, Docs and Sample Updates for VMC
  • NSX-T Opaque Networks now supported with Cross vCenter Workload Migration Fling
  • Which NSX-T Policy APIs are used in the NSX-T UI in VMC?

Categories // Automation, NSX, VMware Cloud on AWS Tags // NSX-T, Policy Manager API, VMC, VMware Cloud on AWS

Thanks for the comment!Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
  • Quick Tip - Validating Broadcom Download Token  05/01/2025
  • Supported chipsets for the USB Network Native Driver for ESXi Fling 04/23/2025
  • vCenter Identity Federation with Authelia 04/16/2025
  • vCenter Server Identity Federation with Kanidm 04/10/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025

 

Loading Comments...