vim25 | Experimental Go interface to the VMware vSphere API | REST library
kandi X-RAY | vim25 Summary
kandi X-RAY | vim25 Summary
Experimental Go interface to the VMware vSphere API. The purpose of this project is to create a small set of funcions to provide basic operations to deploy, run and manage virtual machines inside vSphere environment.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- vmImport is a wrapper for vmImport
- moList is the interface implementation .
- vmList handles the vm list .
- Initializer for vm import
- vmOn VM on vm
- vmOff handles the VMOff command .
- currentTime gets the current time
- mustLogin issues a login request
- ServiceContent gets service content
- readSessionCookie reads the soap session cookie
vim25 Key Features
vim25 Examples and Code Snippets
Community Discussions
Trending Discussions on vim25
QUESTION
Have been using the following code from the issue
How to retrieve all clusters? https://github.com/vmware/govmomi/issues/1674
To retrieve cluster information, though the cluster name appears not to be returned,
does anyone know how i would retrieve the cluster names ?
...ANSWER
Answered 2020-Jun-08 at 19:21Adding name to Retrieve fixed the issues.
https://github.com/vmware/govmomi/issues/2008
err = v.Retrieve(ctx, []string{"ClusterComputeResource"}, []string{"summary", "name"}, &clusters)
QUESTION
I have tried going though several iterations of this and I am hoping I am just looking at the wrong thing entirely or I might just be blind. :-) So the basic parameters in grabbing info from the SDK are:
...ANSWER
Answered 2020-May-24 at 03:02Never got why the above XML gave me all 0's where it looked like there should be a performance summary, but I did get finally make some headway on figuring out how to properly query the VMWare API. Unfortunately, using PHP was a bit trying as the implementations for VMWare tended toward the incomplete side and weren't well documented.
So I made a PHP-based API that uses RAW XML (since I couldn't get the various SOAP libraries to consistently give me what I needed).
https://github.com/matt-o-matic/PHP-VMWare-API-Class
Specifically, to answer my question above... it is a multi-step process to get at network usage on any device within VMWare. First, you must find out the ID of the device. The XML above in the question does that bit nicely. Just look for the obj_id in the output and you'll have the object id.
From there it gets a little trickier. You'll also have to know the object TYPE in VMWare. In my case:
- VM Guests = VirtualMachine
- VM Hosts = ComputeResource
- Virtual Switches = DistributedVirtualSwitch
To get a list of metric IDs that are supported for that object:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vim25
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page