Introduction to the Zerto Virtual Replication Restful APIs : Managing VPGs : Using the vpgSettings API
  
Using the vpgSettings API
The vpgSettings API is exposed over HTTPS and requires a session running with basic authorization. The username and password authorization used must be a valid username and password either for the Windows machine where the Zerto Virtual Manager is installed or for the hypervisor manager, VMware vCenter Server or Microsoft SCVMM, accessed by the Zerto Virtual Manager. In both cases the Zerto Virtual Manager is the Zerto Virtual Manager where the APIs will run.
Using the username and password either for the Windows machine where the Zerto Virtual Manager is installed or for the hypervisor manager, VMware vCenter Server or Microsoft SCVMM, accessed by the Zerto Virtual Manager, you can establish a session by posting the following URL:
https://zvm_ip:port/v1/session/add
A session identifier, x-zerto-session, is returned as part of the response header and the session is established. The session identifier is used in the client code with every API call for the duration of the session.
The APIs can be consumed by applications implemented in different technologies in a stateless manner.
Data returned is formatted either as JSON or as XML as set by the consumer. By default, data that is returned for the v1 APIs is formatted as JSON.
An API session times out after 30 minutes of inactivity. A VPG settings object is automatically deleted from memory in the following situations:
When a session times out.
When the VPG settings object is not used in a session for 30 minutes, even if the session is still active.
When the VPG settings object is committed.