Zerto APIs : Peer Sites API : URL
  
URL
Pair with another site
https://zvm_ip:port/v1/peersites
Where:
zvm_ip
The IP address of the Zerto Virtual Manager where the API is run.
port
The port to access the Zerto Virtual Manager. The default port is 9081.
Request Body Using Json Format
The following is an example of a request body in Json format for https://zvm_ip:port/v1/peersites POST request.
{
  "HostName": "String content"
  "Port": 9081
  "Token": "STS5CDTQTQG68HBPENSHGMBVWGTEPN4L9HRPA487SH7ZVZHGU9FA"
}
Request Values
Request values for https://zvm_ip:port/v1/peersites POST request.
Parameter
Description
Mandatory
HostName
The address or DNS name of the Zerto Virtual Manager machine that will pair to the current site.
Yes
Port
The default port used for communication between paired Zerto Virtual Managers. The default port is 9081.
Yes
Token
The generated token from the destination site.
Note: Site Pairing is supported only when both sites support pairing authentication. Meaning, a site running Zerto v7.5 cannot pair with a site running a lower Zerto version.
Existing peers will remain paired on upgrade. Therefore, if you plan to pair sites, where one is running Zerto v7.5 and the other site is running a lower Zerto version, perform the pairing before upgrading to Zerto v7.5.
Yes
XML Request Format
For the XML request format, see Peer Sites API POST Method Request and Response Formats.
Response In Json Format
The following is an example response request Json body for https://zvm_ip:port/v1/peersites POST request.
{
  "TaskIdentifier": "String content"
}
Response Values
Response values for https://zvm_ip:port/v1/peersites POST request.
Parameter
Description
TaskIdentifier
The identifier of the pairing task. The task identifier can be used with the Tasks API to monitor the delete action.
XML Response Format
For the XML response format, seePeer Sites API POST Method Request and Response Formats.
PowerShell Scripts
For complete PowerShell Scripts, see Examples.