You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am for my work building our CLI tool to basically automate a lot of our stuff.
I have a hard time finding any documentation, guides etc that basically just shows how to:
connect to vSphere/vCenter through the SDK.
Get information of a VM running.
Modify basic VM hardware
such as: add CPU, Ram & disk.
Right now i do a "hacky" setup where I basically just uses exec.Command() from the package os/exec and that is not great, especially not when errors happen.
So if anyone have simple code snippet to share so i can get going and possible also point me to the golang package to maintain resources on a VM. 🙏
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey,
I am for my work building our CLI tool to basically automate a lot of our stuff.
I have a hard time finding any documentation, guides etc that basically just shows how to:
such as: add CPU, Ram & disk.
Right now i do a "hacky" setup where I basically just uses
exec.Command()
from the packageos/exec
and that is not great, especially not when errors happen.So if anyone have simple code snippet to share so i can get going and possible also point me to the golang package to maintain resources on a VM. 🙏
Beta Was this translation helpful? Give feedback.
All reactions