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