GetPairedSite

This function gets the remote site paired with this site. A remote site may be acting as the secondary site for this site, or may be acting as the primary site with this site as its secondary. Most of the initial Site Recovery Manager calls work for everyone (System.Anonymous privilege) but GetPairedSite requires the System.View role, so it must be called after login to the local site. Also GetPairedSiteSolutionUserInfo is useless without the remote paired site, so the two must be called together.

Synopsis

RemoteSite getPairedSite( )

The RemoteSite class contains the following fields:

Field Description
name

a String with the name of the site.

uuid

a String with the UUID of the site.

vcHost

a String with the DNS name or IP address of the remote vCenter Server.

vcInstanceUuid

a String with instance UUID of the vCenter Server associated with the remote Site Recovery Manager.

vcPort

an integer with the port used for VMOMI access to the remote vCenter Server.

vcUrl a String with the URL of the remote vCenter Server
connected a boolean that is true when the sites are connected and false when the sites are disconnected.
lkpUrl a String with the URL of the remote LookupService server.

Faults

  • RuntimeFault
  • RemoteSiteNotEnabled if the remote site is not enabled.

Example

String RemoteSite getPairedSite(_this)