VMware Networking Community
continuitysw
Contributor
Contributor

Getting vCenter UUID using NSX Rest API

Hi,

Is there a way to get the vCenter UUID(and other information) using NSX Rest API?

All I've seen was the vCenter IP address.

Thanks for the help,

0 Kudos
2 Replies
bayupw
Leadership
Leadership

Hi Alex,

Are you referring to MoRef ID in vCenter / vCenter Object ID?

The NSX REST API guide suggests to use the MOB browser as described in this KB: VMware KB 1017126 - Looking up Managed Object Reference (MoRef) in vCenter Server

Other alternative ways such as using NSX Manager Central CLI and PowerCLI to find MoRef ID are described in these blog posts:

Finding moref IDs for NSX API Calls

How to (quickly) match a moRef ID to a name in VMware vSphere – Danilo Chiavari

Bayu Wibowo | VCIX6-DCV/NV
Author of VMware NSX Cookbook http://bit.ly/NSXCookbook
https://github.com/bayupw/PowerNSX-Scripts
https://nz.linkedin.com/in/bayupw | twitter @bayupw
0 Kudos
DaleCoghlan
VMware Employee
VMware Employee

Also have a read of the following post, which will show you how to lookup most morefs directly via the NSX API.

NSX-v – How to find Object IDs for almost everything! – SneakU

0 Kudos