You use the vSphere Replication REST APIs to connect your source site and your target site.

Prerequisites

To create a site pairing, you must register your vSphere Replication to the Platform Services Controller (PSC) by using the VRMS Appliance Management Interface or the VRMS Appliance Configuration REST API Gateway.

Procedure

  1. To login to the source site, make a POST request.
    POST BASE_URL/api/rest/vr/API_VERSION/session
  2. To create a site pairing, make a POST request.
    POST BASE_URL/api/rest/vr/API_VERSION/pairings/
    Example request body:
    {
       "pair_vc_id": "775043e3-5ef7-440f-bb1f-6c071050c92d",
       "pair_psc_info": {
          "url": "vc-colo-2.mycorp.com",
          "port": "443",
          "thumbprint": "7C:42:1E:D9:54:8A:AD:CF:5C:8C:82:E9:DC:55:97:4F:DA:42:1D:73",
          "username": "[email protected]",
          "password": "secure_password"
       }
    }