-
Notifications
You must be signed in to change notification settings - Fork 913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add snapshot size to snapshot.tree #1197
Comments
Taking a quick look where we can find this data, it would be useful if you could share the output of this command in your environment and let us know if the % govc vm.info -json '*' | jq '.VirtualMachines[].LayoutEx.File[] | select(.Type == "snapshotData")'
{
"Key": 6,
"Name": "[datastore1] foo/foo-Snapshot1.vmsn",
"Type": "snapshotData",
"Size": 1120676,
"UniqueSize": 1120676,
"BackingObjectId": "",
"Accessible": true
} |
@dougm Having this support would likely be useful for other clients of the govmomi package as well. Do you see adding it as a field to the |
@atc0005 agreed it would be generally useful. We can't add fields to vim25/types however, those are generated from SDK spec (wsdl). But you can add helper types and methods by using a different type. A few examples: govmomi/object/authorization_manager.go Lines 40 to 60 in c43a1c8
Lines 183 to 195 in c43a1c8
govmomi/object/virtual_device_list.go Lines 41 to 42 in c43a1c8
govmomi/object/host_firewall_system.go Lines 81 to 85 in c43a1c8
There's more too, but those should give you the idea. I think similar could be done for |
FWIW: This isn't from govc, but accessing the |
#2269 added a |
It would be really cool to be able to retrieve the size of each VM snapshot by passing a size argument to snapshot.tree.
The text was updated successfully, but these errors were encountered: