Reply to Message

View discussion in a popup

Replying to:
kumar_t
Enthusiast
Enthusiast

Remote Plugin: How to get vCenters list with FQDN in Remote Plugin UI?

We are following singleton plugin topology for our plugin. But need to have a custom vCenter selector dropdown as our views are specific to a vCenter as below:

kumar_t_0-1610015674126.png

 

Basically i'm looking to get the info Linkedmode vCenters which has my plugin registered. Expected data as below

[{

"vCenterFQDN": "10.60.6.64",

"vCenterGuid": "44594890-e3db-43c6-befa-e236ba3114d9"

},

{

"vCenterFQDN": "10.60.6.74",

"vCenterGuid": "64594890-e3ba-43c6-bcfa-e236ba3114d9"

}] 

 

The current JS API getPluginBackendInfo() will not give vCenterFQDN. It just gives VC UUID's as below:

{
  allPluginBackendServers: [
   {proxiedBaseUrl: "/plugins/remote~1.0~8/10.30.198.150-8443", type: "AUX_SERVER_1"},
   {proxiedBaseUrl: "/plugins/remote~1.0~8/10.30.198.149-5432", type: "COMMON_SERVER"},
   {proxiedBaseUrl: "/plugins/remote~1.0~8/10.30.198.151-8443", type: "AUX_SERVER_2"}
  ],
  backendServersPerVc: {
   vc-guid-1: [
    {proxiedBaseUrl: "/plugins/remote~1.0~8/10.30.198.150-8443", type: "AUX_SERVER_1"},
    {proxiedBaseUrl: "/plugins/remote~1.0~8/10.30.198.149-5432", type: "COMMON_SERVER"}
   ],
   vc-guid-2: [
    {proxiedBaseUrl: "/plugins/remote~1.0~8/10.30.198.151-8443", type: "AUX_SERVER_2"},
    {proxiedBaseUrl: "/plugins/remote~1.0~8/10.30.198.149-5432", type: "COMMON_SERVER"}
   ]
  }
 }

 

How do I get vCenter FQDN with UUID? Is there a API available?

Labels (2)
Reply
0 Kudos