Quantcast
Channel: VMware Communities: Message List - vSphere Management SDK
Viewing all 2052 articles
Browse latest View live

Re: Can't building the C# SSO DLL with Error: pvk2pfx command not found.

$
0
0

I believe You followed the same documentation for setting up the 6.0  C#  SDK environment.

Few prerequisite requirements were  i.  Microsoft .NET Framework 2.0 SDK  and ii.Microsoft Web Services Enhancements (WSE) 3.0

Looks like both  the requirements obsolete and doesn’t support latest OS Win8/Win10, though it installs.

Reference :

https://www.microsoft.com/en-in/download/details.aspx?id=15354

https://www.microsoft.com/en-in/download/details.aspx?id=14089

 

Saying this vSphere 6.0 SDK maynot work with VS 2015. It may work only with VS 2008


Re: Building and Running Samples (vSphere Web Services SDK 6.0 and JDK 8 (1.8.0_x) and make code

$
0
0

I have JDK 1.8.0.92 in Win 10, and the same sample worked fine, with/without --ignorecert option.
Looks like this is not a JDK issue. Any security/cert hardening in server side?

Re: Building and Running Samples (vSphere Web Services SDK 6.0 and JDK 8 (1.8.0_x) and make code

VIX error codes equivalent API in vsphere SDK

$
0
0

While trying to migrate from VIX to guest operations of vsphere API, I see that there is an equivalent API for running a program on guest, ie, VixVM_RunProgramInGuest ~ StartProgramInGuest. With this API we can fetch exit codes but is there a way to fetch error messages . Also is there an equivalent API for VIX_GetErrorText to fetch SDK error codes smilar to VIX.

 

Thanks in advance.

Re: VIX error codes equivalent API in vsphere SDK

$
0
0

but i need to download and try a

VMware vSphere Hypervisor 6.0

Whaе I should to do, for this ??? please help!

How to generate credential file from SAML token

$
0
0

I want to create a vCenter Plugin using SDK 6.0 , in the vCenter Plugin I want to generate credentials file of vCenter Server to send to another machine and from this machine, it login vCenter automatic, I don't want user to input it manually. Can we create a credentials file from user session or SAML token ?

vSphere SDK which is compatible with both vCenter 5.5 and 6.0

$
0
0

Dear all

I want to create a vCenter plugin, which supports both vCenter 5.5 and vCenter 6.0. Which version of vSphere SDK should I use for developping the plugin?

Is vSphere 5.0 SDK compatible with vCenter 6.0?

$
0
0

Our portal application is using the vSphere 5.0 SDK. When our application went live, it was making web service calls to vCenter 5.0. At the beginning of the year, vCenter was upgraded to 5.5 update 3b, and there seemed to be only one issue with this upgrade (documented here: Get-Stat error while querying vCenter 5.5u3)

 

Now vCenter is going to be upgraded to 6.0.

 

Is vCenter 6.0 compatible with the vSphere 5.0 SDK? Are there going to be any issues like the one we encountered when going from 5.0 to 5.5?


Re: vSphere SDK which is compatible with both vCenter 5.5 and 6.0

$
0
0

Always use the latest vSphere SDK.
For eg: You can use vSphere Management SDK 6.5 , which supports vCenter 6.5/vCenter 6.0/vCenter 5.5.

 

If you are specific about vCenter 5.5/vCenter 6.0, You can use vSphere Management SDK 6.0.2 for Your application development

Unable to apply profile to a VM programmatically at the time of configure and clone of a VM.

$
0
0

We are encountering an issue while asigning policy to a VM using vSphere SDK.

Issue: at the time of un-registering a VM the VM loses its profile, while registering it again we wish to reapply the policy.

As per our understanding this can be done using re-configuring the VM. We tried to apply the policy to the VM at the time of reconfiguration using the property VirtualMachineDefinedProfileSpec.

https://www.vmware.com/support/developer/converter-sdk/conv60_apireference/vim.vm.DefinedProfileSpec.html#field_detail

 

Please find the code snippet for the same below:

 

l_VMConfSpec --> configuration specs for VM config specification.

ns2__VirtualMachineDefinedProfileSpec *pVDevProfileConfSpec2 = soap_new_ns2__VirtualMachineDefinedProfileSpec(m_vim.soap, -1);

pVDevProfileConfSpec2->profileData = soap_new_ns2__VirtualMachineProfileRawData(m_vim.soap, -1);

pVDevProfileConfSpec2->profileId = m_wsStoragePolicyId; //unique id of profile

l_VMConfSpec.vmProfile.push_back(pVDevProfileConfSpec2);

 

No error is returned from VMware at the time of reconfiguration.

 

 

Is this the correct way to assign profile to a VM?


tianhao64

Re: Unable to apply profile to a VM programmatically at the time of configure and clone of a VM.

$
0
0

Hi,

This question is not related to vSphere Web Client SDK.

Please post it on the vSphere Management SDK forum here.

Cheers,

Vladimir

how to authenticate for rest api with vCenter 6.5 appliance

$
0
0

Hello,

vCenter Appliance 6.5 has a feature to create a backup that can be restored with the installer gui. To create this backup one must access the appliance portal at port 5480. I would like to automate and schedule that backup. It can be accessed with the API's from the SDK. It must be possible to execute this via REST API. A bash sample is documented: 

https://pubs.vmware.com/vsphere-65/index.jsp#com.vmware.vsphere.vcsapg-rest.doc/GUID-222400F3-678E-4028-874F-1F83036D2E85.html

I have tried to authenticate to vCenter to invoke a rest operation from Orchestrator but I have not had any success.

I think that I can't use the right authentication mechanism, when I try to invoke the REST operation i get a 401 error. I have tried the basic authentication and I have looked at using the other mechanisms that are listed when adding a REST host in Orchestrator but can't figure out what to use.

If anyone has earlier connected with vCenter Appliance via REST and could share how to authenticate that information would be greatly appreciated.

Re: Is it possible to use vSphere scheduled task to call my own script in vSphere web client

Re: how to authenticate for rest api with vCenter 6.5 appliance

$
0
0

For the backup API you should not access it over 5480, the docs are here which explain the API location and details: https://vdc-repo.vmware.com/vmwb-repository/dcr-public/1cd28284-3b72-4885-9e31-d1c6d9e26686/9a0dbc46-b15f-47cd-af1d-dc64615b03df/doc/operations/com/vmware/appliance/recovery/backup/job.create-operation.html

You will need to use the authentication API to get a session here: https://vdc-repo.vmware.com/vmwb-repository/dcr-public/1cd28284-3b72-4885-9e31-d1c6d9e26686/9a0dbc46-b15f-47cd-af1d-dc64615b03df/doc/operations/com/vmware/cis/session.create-operation.html

for Orchestrator you may want to use the vAPI plugin which should be able to access this API easier than the REST plugin.

SOAP API Usage to Retrieve properties

$
0
0

Hello,

 

I need to implement an automation integration with vSphere using SOAP HTTP API call.

I am testing now each call I need using SoapUI interface, in order to implement later the call using an automation tool from where I can run HTTP methods.

At the moment I am able to run the login and to retrieve the responseHeaders, so that with the next call I can use the Cookie header.

It is working, I have also found in this forum an old post and I got from it the example.

 

What I need to do is to rescan, attach a new LUN as new datastore, format the disk and make it available.

At the moment I am able to check which disk are available, using the QueryAvailableDisksForVmfs call, but to do that I need the datastoreSystem name.

I am trying to use the RetrieveProperties call but from the documentation it is totally unclear, for me of course, which are the parameters to use in the several option.

 

I am trying in this way but it is not working

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:vim25">

   <soapenv:Header/>

   <soapenv:Body>

      <urn:RetrieveProperties>

        <urn:_this type="PropertyCollector">PropertyCollector</urn:_this>

        <urn:specSet>

            <urn:propSet>

               <urn:type>Datastore</urn:type>

            </urn:propSet>

            <!--1 or more repetitions:-->

            <urn:objectSet>

               <urn:obj type="HostSystem">172.24.0.10</urn:obj>

            </urn:objectSet>

         </urn:specSet>

      </urn:RetrieveProperties>

   </soapenv:Body>

</soapenv:Envelope>

 

Let me know where I can find a more clear documentation on the usage of the SOAP call from a SoapUI client.

 

Thanks for your help

 

Mirco


Re: Can I invoke a specific method instead of a "*_Task" like operation when create a task action

Re: Adding vGPU using pyVmomi

$
0
0

FINALLY!! The answer. I had to use

from pyVim.connect import SmartConnect


instead of the legacy way by importing module 'Connect'

from pyVim.connect import Connect

 

Use SmartConnect and the code below should work

FSS_LookupPath & FSS_Readdir on Nutanix array

$
0
0

Hi 

When trying to use FSS_LookupPath & FSS_Readdir on a Nutanix array I am getting an empty answer although  the VMDK is there when browse the folder 

Re: InstantClone APi ??

Re: Custom events not formatting correctly with WSSDK 5.1

$
0
0

Hi,


try - customEventResourceInfo.setLocale("en_US");

 

Regards,

Harsha

Viewing all 2052 articles
Browse latest View live


Latest Images

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