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:
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?
Hi Kumar,
There is no frontend API to get this but this is covered by the vSphere Web Services SDK (vim25).
I believe what you need is the VirtualCenter.InstanceName setting that you can view in the following MOB location: https://VCENTER_IP/mob/?moid=VpxSettings&doPath=setting%5b%22VirtualCenter%2eInstanceName%22%5d
If this is not sufficient please ask in the vSphere Management SDK forum.
Cheers,
Vladi
Can i see how you have implemented getPluginBackednInfo().
Im trying to implement that function.