Quantcast
Channel: VMware Communities : All Content - vSphere Management SDK
Browsing all 1860 articles
Browse latest View live

posting custom events and creating alarms on custom events

I m creating custom event on a VM in the following code.             ExtendedEvent myEvent = newExtendedEvent();             myEvent.chainId = 0;            myEvent.key = 0;...

View Article


Traffic shaping per VM, rather than vlan

As per VirtualMachineNetworkShaperInfo I tried to set bandwidth restrictions using Traffic shaping policy on VM using vmware API and it didn't work as expected.  Followed the below...

View Article


I want to use code to implement the function of console in VSphere Client to...

I want to use code to implement the function of console in VSphere Client to find that file

View Article

vix api to vSphere API

Hi, I have a project which uses vix APIs to manage VMs in Workstation and esxi. After the release of vix1.15, these vix APIs are deprecated and no longer be used to manage VMs present in ESXi. The code...

View Article

"A WebService annotation is not present on class:...

Hi,We have a vSphere HTML SDK plugin developed using vSphere 6.5 SDK. One of the dependencies for our plugin is vim25.jar (from the libs folder of vSphere 6.5 HTML SDK).Our plugin gets loaded...

View Article


c# API getting VM name from MOR

HelloI am able to get a list of VM's MOR but is there a way to translate that to the actual VM names?I used the PropertySpec with Traversalspec to get the MOR of the VM's but how do I convert that to...

View Article

vSphere Server error: 0x803d0000 : The input data was not in the expected...

Hi, I am trying to connect esxi server using WWSAPI.  Generated the client side proxy stubs using WsUtil.exe comes with Microsoft SDK. After setting all the things, when I call proxy stub for...

View Article

In the Java program of vSphere Management SDK, how do I call the vmRc SDK...

In the Java program of vSphere Management SDK, how do I call the vmRc SDK function?

View Article


How to use SDK API to assign static IP address to VM

 Hi All,  Can I use SDK API to assign static IP address to VM when cloning a new VM? I used VI Client to do it but it failed. Therefore, I am wondering if SDK API can do this. Can anyone give me a...

View Article


How to assign static IP to the VM while cloning the VM from template using java

Hello,I am getting InvalidRequest exception while assigning static ip to the VM while cloning using java. Attached is the code and exception. Is there any mistake in my code?Thanks

View Article

How to update IP and Network adapter using Java

 Greetings,  would anybody have a working example on how to update the IP address and network adapter of an existing VM?  We are using ESX Server 3.5, and the VI SDK 2.5.0.  Similar to the code...

View Article

Using vCloud Suite SDK for tag management on vsphere 5.5 or earlier

Hello,I researched alot about this topic and found out that  5.5 and earlier versions of vSphere have tagging capability but they do not provide public API for tag management so we won’t be able to...

View Article

How to wait a task after cloning VM with VMWare.vim.dll ?

Hello everybody, I work on a web interface which manage virtual machines on vsphere Esx 5.5. My interface is based on .net web forms (not MVC)I followed jeffpaton posts (using VMware.Vim  ) which...

View Article


How to maintain session across VCP client and backend integration server?

Hi, We are building a vSphere client plugin with workflows offloaded to a backend server.Is there way using which I can use the logged in user session to run these flows in the backend server? I am...

View Article

Distributed Port Group assignment

How can we assign existing Distibuted port group to the VM using java?I tried with below code but it shows disconnected...VirtualDeviceConfigSpec nicSpec = new...

View Article


How can I create a user in VCenter Server, using vim25?

I can create a user account through the web client.But I want to create users, using vim25 SDK(JAVA).I can retrieve user information from UserDirectory(retriveUserGroups method) but I couldn't find the...

View Article

Repository [MavenCentral ou autre] to add the management SDK as a dependency

Hello,I'm trying to learn gradle for my project and I would add the VMware SDK Management 6.5 (vim25.jar) as a gradle dependency. However, i don't find in any repository (jcenter, mavenRepository) this...

View Article


Deploy OVF C#

I'm trying to deploy OVF by using C#, When I'm deploying the OVF with my tool I'm getting and "Operating system not found" error. however when I'm deploying the same OVF manually  the machine is up and...

View Article

vMotion of a virtual machine with multiple data stores in vmmigrate.pl

Hello I am using vmmigrate.pl to write a shell script to vMotion a virtual machine. System configuration is vCenter x 1, ESXi x 2, Stgege x 1, physical server x 1. We plan to run vSphere cli based...

View Article

PHP - vSphere WSDL Primer

I'm not sure if this is the "correct" place for this, but after spending HOURS of searching and many, many curse words, I wanted to share a quick little guide to using PHP to interface with the vSphere...

View Article
Browsing all 1860 articles
Browse latest View live


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