Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 249166

Re: vSphere API that will return the https port associated with the vcenter server

$
0
0

Hi Reuben, Iamw

 

Basically I am writing a java utility that registes my plugin package (zip file) with the vcenter 5.1 server. As part of registration I am internally contructing the extension url for which I needed the port. I was thinking it may be unsafe to hardcode the https port (needed in the extension url). So I have defined it as 8443 in the code but also I allow the user to override that incase (by fluke) the port changes.

 

Now Inorder to avoid the user entry to retrieve the modified port (if at all modified) I wanted to query for it in the program itself.

 

When u mentioned (under the ServiceInstance, there is a property called Settings) did u imple ServiceContent? I see setting under service content accessed via OptionManager.

Could you please provide me with a sample code to retrieve it, if possible?

 

Thanks

Elizabeth


Viewing all articles
Browse latest Browse all 249166

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>