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 = []
for datacenter in content.rootFolder.childEntity:
for cluster in datacenter.hostFolder.childEntity:
if cluster.name.startswith(cluster_name_prefix):
for host in cluster.host:
for vm in host.vm:
vm_list.append(vm)
for vm in vm_list:
if vm.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?