We are migrating to new HTML plugin from "legacy script" plugin using VMware webclient 6.5 SDK.
We have a back end server that gets installed on a remote Windows server. This backend server uses vi java library to communicate to ESXi hosts to fetch our proprietary information which is not available via the standard SDK APIs.
plugin.xml for our legacy script plugin looked like -
<legacyScriptPlugin>true</ legacyScriptPlugin>
While loading the plugin, vCentre server makes a Get request using above url along with few additional http params like objectId, serverGuid and sessionId to backend server.
For our new html plugin, we could figure out from wssdk SDK samples on how to retrieve serverGuid, using vi java library.
Now, how to fetch other two params objectId and sessionid?
We tried below angular snippet to fetch objectId by referring custom-object sample
constructor(private _http: HttpClient,
private _route: ActivatedRoute,
) {
this._webPlatform = window.parent. vSphereClientSDK. getWebPlatformApi(window);
this._objectId = this._route.snapshot.params[" objectId"];
console.log(this._objectId);
}
objectId is always undefined.
None of the members under UserSession, represent required sessionId.
Any pointers in this regard is greatly appreciated.