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
Is your feature request related to a problem? Please describe.
Hi,
It looks like vSphere doesn't inherently store the information about who created a specific snapshot. This information is typically not directly available in the vSphere API.
This code snippet gives attributes and methods of the snapshot:
cluster_name_prefix="my-cluster"content=service_instance.RetrieveContent()
vm_list= []
fordatacenterincontent.rootFolder.childEntity:
forclusterindatacenter.hostFolder.childEntity:
ifcluster.name.startswith(cluster_name_prefix):
forhostincluster.host:
forvminhost.vm:
vm_list.append(vm)
forvminvm_list:
ifvm.name=="my-vm":
snapshot=vm.snapshot.rootSnapshotList[0]
print(f"Attributes and Methods of the Snapshot for VM my-vm:")
print(dir(snapshot))
Disconnect(service_instance)
Is your feature request related to a problem? Please describe.
Hi,
It looks like vSphere doesn't inherently store the information about who created a specific snapshot. This information is typically not directly available in the vSphere API.
This code snippet gives attributes and methods of the snapshot:
here is the output:
I can easily get snapshot id, name, state, createtime, description but not creator name.
Does anybody know any way to achieve it?
The text was updated successfully, but these errors were encountered: