- This topic has 3 replies, 2 voices, and was last updated June 28, 2019 by Jeff W.
Zerto API to get IP Address of VM
The forum ‘Scripting and APIs’ is closed to new topics and replies.
Hi ,
I dont find API to get the IPAdress of a VM. Is there any way to get a VM’s IPAdress given the VM Identifier and VM Name?
Thanks in advance,
Lydia.
Hi Lydia – it would likely be best to reach out to the vCenter or platform API (IE non-Zerto API, rather the platform the VM resides on) in order to get the current IP address. Zerto allows users to configure the IP to address to use for Zerto operations but we do not manage or provide the existing VM’s IP address via our API. — Justin
Thanks Justin.
So what is the unique identifier for the VM ? Is it the VMIdentifier ?
So that depends. For protected VMs you can get that here: http://s3.amazonaws.com/zertodownload_docs/Latest/Zerto%20Virtual%20Replication%20Zerto%20Virtual%20Manager%20%28ZVM%29%20-%20vSphere%20Online%20Help/index.html#page/RestfulAPIs%2FStatusAPIs.5.095.html%23
If the VM is not yet protected then it should be here: http://s3.amazonaws.com/zertodownload_docs/Latest/Zerto%20Virtual%20Replication%20Zerto%20Virtual%20Manager%20%28ZVM%29%20-%20vSphere%20Online%20Help/index.html#page/RestfulAPIs%2FStatusAPIs.5.089.html%23
The forum ‘Scripting and APIs’ is closed to new topics and replies.