Comments (17)
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.
@kannancorent @Coada This information is now available in 6.7 at rest/vcenter/vm/{vm}/guest/identity
.
from vsphere-automation-sdk-rest.
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.
Cool, thanks for the quick reply!
Any VMOMI for Java you might direct me at (that can acquire IPs?)
from vsphere-automation-sdk-rest.
@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.
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.
@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.
Hi
Can i know when will be the REST api for getting IP will be released
from vsphere-automation-sdk-rest.
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.
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.
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.
@thorstenschaefer1976 You are correct. The REST API currently does not have a way to return multiple IPs.
from vsphere-automation-sdk-rest.
thanks for your fast reply. what else can i do without scraping it from the vcenter UI?
from vsphere-automation-sdk-rest.
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.
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.
vSphere 6.7 can't get all VM's IP addresses for good?
from vsphere-automation-sdk-rest.
@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)
- Missing VM information from .../vcenter/vm/{vm} HOT 14
- https://vcenter6-eqx.noc.lan/rest/vcenter/host/{host} is not available HOT 1
- Setting PropertyParams when deploying VM from OVF HOT 10
- How to determine available datastores and networks given a cluster + host? HOT 4
- SSO example results in SAXParseException HOT 3
- OpenAPI spec for vSphere automation REST? HOT 3
- Enable vApp options and configure OVF environment transport for a VM HOT 3
- vm/{vm}/guest/identity should return all IPs HOT 1
- Link to REST-API-resources is wrong HOT 1
- Trouble with Instant Clone HOT 9
- test
- how to access the rest api from python? HOT 1
- Broken link HOT 1
- Retrieving IPv4 address of deployed VM
- Include VM Folder in vm api
- unable to create vm with distributed switches HOT 3
- What will I write in the "source" section when I import the clone? HOT 1
- How change clone vm ip address ?
- Need OVF deploy example including static ip assignment HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vsphere-automation-sdk-rest.