VMware Cloud Community
mykolasb
Contributor
Contributor

retrieving host vmkernel interface network label from VROPS rest API

Hi All,

what call should I use the learn the host vmkernel interface network label? I use the /suite-api/api/resources/{id}/properties call to get host vmkernel interface ip address, but struggling to find the network label which I can see in vcenter WebUI under host vmkernla interface list

Reply
0 Kudos
2 Replies
RickVerstegen
Expert
Expert

I am afraid that is not available.
When looking at the metrics/properties of a ESXI host in the GUI there is no value available to read the network label of a vmkernel interface in the network section of that object. Only IP information is available.

 

Was I helpful? Give a kudo for appreciation!
Blog: https://rickverstegen84.wordpress.com/
Twitter: https://twitter.com/verstegenrick
Tags (1)
Reply
0 Kudos
mykolasb
Contributor
Contributor

thanks for confirmation. Seems vrops does not show portgroup information for the vmkernl interface. I solved it by adding function to my script to resolve interface ip in the statically  subnet - portgroup dictionary

Reply
0 Kudos