The link data type describes the links resource.
link data type properties
The following table describes the properties included in the link data type.
Example
Here’s an XML example of the link data type; the properties shown are those that are returned by a verbose GET request for an active/active link:
<link> <compression>false</compression> <connection> <localHost> 192.168.210.16, 192.168.210.17, 192.168.210.18, 192.168.210.19 </localHost> <localPort>5748</localPort> <remoteHost>replication.admin.hcp-ca.example.com</remoteHost> <remotePort>5748</remotePort> </connection> <description>Active/active link between systems in MA and CA</description> <encryption>false</encryption> <failoverSettings> <local> <autoFailover>true</autoFailover> <autoFailoverMinutes>60</autoFailoverMinutes> </local> <remote> <autoFailover>true</autoFailover> <autoFailoverMinutes>60</autoFailoverMinutes> </remote> </failoverSettings> <id>2de89eec-0ec0-4f98-b852-0778dfeee792</id> <name>MA-CA</name> <priority>OLDEST_FIRST</priority> <statistics> <upToDateAsOfString>2017-02-18T10:47:59-0400 </upToDateAsOfString> <upToDateAsOfMillis>1395154079640</upToDateAsOfMillis> <bytesPending>189027593061</bytesPending> <bytesPendingRemote>319740</bytesPendingRemote> <bytesReplicated>72254119306967</bytesReplicated> <bytesPerSecond>56215390</bytesPerSecond> <objectsPending>534</objectsPending> <objectsPendingRemote>2</objectsPendingRemote> <objectsReplicated>295661</objectsReplicated> <operationsPerSecond>119.1</operationsPerSecond> <errors>0</errors> <errorsPerSecond>0.0</errorsPerSecond> <objectsVerified>402200</objectsVerified> <objectsReplicatedAfterVerification>0</objectsReplicatedAfterVerification> </statistics> <status>GOOD</status> <statusMessage>Synchronizing data</statusMessage> <suspended>false</suspended> <type>ACTIVE_ACTIVE</type> </link>
Query parameters for replication link actions
To perform actions on replication links, you use these query parameters:
- suspend
- Suspend activity on the link.
- resume
- Resume activity on a suspended link.
- failOver
- Fail over the link to the remote system.
- failBack
- For an active/active link, fail back the link.
- beginRecover
- For an active/passive link, begin data recovery.
- completeRecovery
- For an active/passive link, complete data recovery.
- restore
- Restore the link to the remote system.
You use these query parameters with a POST request against the link resource. You cannot include a request body with this request.
Here’s a sample POST request that suspends activity on the replication link named MA-CA:
curl -k -iX POST -H "Authorization: HCP YWxscm9sZXM=:04EC9F614D89FF5C7126D32ACB448382" "https://admin.hcp-ma.example.com:9090/mapi/services/replication/links/MA-CA ?suspend"