Zerto Virtual Replication APIs : ZORGs API : Code Examples
  
Code Examples
For complete code examples, see Code Samples.
/v1/zorgs cURL Code Example
Retrieve information about the ZORGs defined in the Zerto Cloud Manager that manages this site.
curl -D responseHeader -H "Content-Type: application/json" –H "Accept: application/json -H "x-zerto-session: 9UDQD6RG7YF33QJLWQXGJV8C453N277NA22P7FSNWVZCJTWCBRHQ" https://127.0.0.1:9669/v1/zorgs
For a more code examples, see cURL Code.
/v1/zorgs C# Code Example
Retrieve information about the ZORGs defined for the site where the API is run. For a full code example, including setting up a session, see C# Code.
/*
 * Example - get ZORG information
 */
private void GetZorgs() {
  Console.WriteLine("\nRequest information about the ZORGS:");
  Console.WriteLine("=====================================");
  string apiAddress = m_baseAddress + "zorgs";
  string result = ExecuteHttpGet(apiAddress, m_format, m_sessionId);
  Console.WriteLine(result);
}