VMware {code} Community
kbr5678
Contributor
Contributor

queryHostConnectionInfo problem

Hi..

In our enviroment we are using Esx4i server to get measures via VI SDK..If we used this method queryHostConnectionInfo().

We get some exception.

AxisFault

faultCode: ServerFaultCode

faultSubcode:

faultString: fault.RestrictedVersion.summary

faultActor:

faultNode:

faultDetail:

RestrictedVersionFault:null

fault.RestrictedVersion.summary

What is the reason for that exception? Need a help ...

Thanks

ramesh K B

0 Kudos
2 Replies
lamw
Community Manager
Community Manager

fault.RestrictedVersion.summary is thrown if you're using free ESXi license when trying to perform a write operation which is not supported by this license type. You only have "read" access to host, to get full r/w access, you need to purchase a paid license.

Any of these licenses will work - http://www.vmware.com/products/vsphere/buy/editions_comparison.html as you can see different version will give you different advanced feature set, but all of them include the r/w API access.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos
ericV201110141
Contributor
Contributor

I'm having the same issue, but in what way is a call to queryHostConnectionInfo() anything more than a "read" operation?

0 Kudos