Giter VIP home page Giter VIP logo

Comments (17)

jrgarcia avatar jrgarcia commented on June 1, 2024 1

The management SDK that is linked above is written in Java. It isn't available on GitHub (and doesn't have VMOMI in the name), but it pretty much works the same way as the other three. It is actually the original and, I believe, has more features than the others. I'm not sure if it is available via jCenter, Maven, etc. There is documentation available from that same link too.

from vsphere-automation-sdk-rest.

jrgarcia avatar jrgarcia commented on June 1, 2024 1

@kannancorent @Coada This information is now available in 6.7 at rest/vcenter/vm/{vm}/guest/identity.

from vsphere-automation-sdk-rest.

jrgarcia avatar jrgarcia commented on June 1, 2024

Hi @Coada! This information is not currently available from the REST API though it is planned. You can use the management SDK or one of the VMOMI (VMware Managed Object Management Interface) SDKs available for several languages here on GitHub (pyvmomi, govmomi, and rbvmomi) to get this information right now. Let me know if you have any other questions about the APIs or SDKs.

from vsphere-automation-sdk-rest.

Coada avatar Coada commented on June 1, 2024

Cool, thanks for the quick reply!
Any VMOMI for Java you might direct me at (that can acquire IPs?)

from vsphere-automation-sdk-rest.

jrgarcia avatar jrgarcia commented on June 1, 2024

@Coada Also, you could sign up for the beta program. IP addresses will be available in the next version of the REST API (which is in this beta). You can find more information here.

from vsphere-automation-sdk-rest.

Coada avatar Coada commented on June 1, 2024

Okay so I've managed to get it working. If anyone else happens to stumble upon this issue too I would redirect you to the example FindObjects.java as well as the document explaining Inventory Traversal.

@jrgarcia Looking forward to the released version of the updated REST API, the Management SDK is horrible to work with!

from vsphere-automation-sdk-rest.

jrgarcia avatar jrgarcia commented on June 1, 2024

@Coada I won't say it's horrible 😉, but REST is certainly simpler to work with! Glad you got it worked out!

from vsphere-automation-sdk-rest.

kannancorent avatar kannancorent commented on June 1, 2024

Hi
Can i know when will be the REST api for getting IP will be released

from vsphere-automation-sdk-rest.

alanrenouf avatar alanrenouf commented on June 1, 2024

AS @jrgarcia stated, this was added in 6.7 and the specifics can be found here: https://vdc-repo.vmware.com/vmwb-repository/dcr-public/423e512d-dda1-496f-9de3-851c28ca0814/0e3f6e0d-8d05-4f0c-887b-3d75d981bae5/VMware-vSphere-Automation-SDK-REST-6.7.0/docs/apidocs/operations/com/vmware/vcenter/vm/guest/identity.get-operation.html

from vsphere-automation-sdk-rest.

Coada avatar Coada commented on June 1, 2024

Indeed we are running 6.7 now and I can confirm it. I am happy I also can fetch the hostname of the machine :)

Regarding the IP address I still have to get it through the SDK - our network assigns the machines several IPs and it is only on a specific subnet that I can communicate with the machine. This IP is in the "list" of IPs and not the top one. 6.7 does not have support to fetch the list of (all) IPs, correct?

from vsphere-automation-sdk-rest.

thorstenschaefer1976 avatar thorstenschaefer1976 commented on June 1, 2024

when i query rest/vcenter/vm/{vm}/guest/identity i get only ONE IP.
As shown in Coadas initial post there were multiple IPs.
It seems actually there is no way to get it with REST or perl API?

from vsphere-automation-sdk-rest.

jrgarcia avatar jrgarcia commented on June 1, 2024

@thorstenschaefer1976 You are correct. The REST API currently does not have a way to return multiple IPs.

from vsphere-automation-sdk-rest.

thorstenschaefer1976 avatar thorstenschaefer1976 commented on June 1, 2024

thanks for your fast reply. what else can i do without scraping it from the vcenter UI?

from vsphere-automation-sdk-rest.

jrgarcia avatar jrgarcia commented on June 1, 2024

There is the vSphere Perl SDK. It uses the SOAP APIs to talk to vSphere which has more information available. I only mention that one specifically since you mentioned Perl. It's also available in Java, C#, Ruby, Python, and Go.

from vsphere-automation-sdk-rest.

nrathaus avatar nrathaus commented on June 1, 2024

It seems it has been recently added to vSphere 7.x
https://vmware.github.io/vsphere-automation-sdk-rest/vsphere/operations/com/vmware/vcenter/vm/guest/networking.get-operation.html

from vsphere-automation-sdk-rest.

yk-kawabata avatar yk-kawabata commented on June 1, 2024

vSphere 6.7 can't get all VM's IP addresses for good?

from vsphere-automation-sdk-rest.

nrathaus avatar nrathaus commented on June 1, 2024

@yk-kawabata it seems that the API command doesn't provide the IP information, I cannot say if they won't be supporting it as it seems that they don't plan to backport the code to older vSpheres

from vsphere-automation-sdk-rest.

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.