Giter VIP home page Giter VIP logo

Comments (5)

rdxnaor avatar rdxnaor commented on June 18, 2024 1

Sure
vcenter

  1. add datastore
  2. rescan datastore for new VM's
  3. all assignments to datastore (to host, cluster, vm)

VM operaions

  1. create snapshot
  2. create clone
  3. VMotion

If I encounter more operations, I'll write them down.

Thanks.

from vsphere-automation-sdk-java.

vinpai avatar vinpai commented on June 18, 2024

What were you trying to to do when you got the exception ? Is there a code sample you can attach that we can look at ? Also, please note that as per apidoc, if conversion is not possible it will throw an exception.

T _convertTo(Class clazz)
Converts this structure into an instance of the provided class structure if possible. A conversion will be possible if the requested structure's fields are all present in this structure.
Parameters:
clazz - type of the result structure. cannot be null.
Returns:
an instance of the requested type if conversion is possible. CoreException is thrown otherwise.

In most cases you wouldn't need to use this method. So, if you can paste code your code snippet it will help.

from vsphere-automation-sdk-java.

rdxnaor avatar rdxnaor commented on June 18, 2024

Don't have the code since I found out that this sdk lakes most of the operations I need.
But it basically going from VMTypes.Info to VMTypes.CreateSpec. If thought that if I managed to do that manually - you guys provided it automatically. Unfortunately its not working.

I tried to do it because I wanted to create a similar VM without a template. If you think that its a common use case you should fix that.

from vsphere-automation-sdk-java.

strefethen avatar strefethen commented on June 18, 2024

@rdxnaor would you mind listing the operations that you need that you're missing? I'd like to be sure we have those things in our backlogged and prioritized correctly for our API team.

Thanks,
-Steve
vSphere SDK Dev Manager

from vsphere-automation-sdk-java.

rdxnaor avatar rdxnaor commented on June 18, 2024

Just continued to write my code and there are more operations. didn't check if there are already exists.

  1. discover iscsi target via ip
  2. connect to iscsi target

from vsphere-automation-sdk-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.