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.
Note: This property has been deprecated. You should not rely on this property in production code, as it is not guaranteed to contain valid information in future releases. Instead, you should use lkpUrl and vcInstanceUuid to locate services on the remote site.
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.
Note: This property has been deprecated. You should not rely on this property in production code, as it is not guaranteed to contain valid information in future releases. Instead, you should use lkpUrl and vcInstanceUuid to locate services on the remote site.
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

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

See Faults in Site Recovery Manager API for more details.

Example

com.vmware.srm.SrmRemoteSite remoteSite = srmPortType.getPairedSite(ManagedObjectReference _this);
	
Where ManagedObjectReference _this = _svcRef;