This URL get the failover pair.
Resource URL
GET /domain/<domain_id>/failoverpair /<failoverpair_id>
Request Parameters
URL Parameters:
| Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| domainId | Domain id | Number | Yes |
| failoverpair_id | Failover pair id | Number | Yes |
Response Parameters
Following fields are returned.
| Field Name | Description | Data Type |
|---|---|---|
| failoverPairId | Unique failover pair id, not required for POST | Number |
| model | Sensor model | String |
| name | Failover pair name | String |
| templateDeviceId | Template/Primary device id | Number |
| peerDeviceId | Peer/Secondary device id | Number |
| templateDeviceName | Template/ Primary device name | String |
| peerDeviceName | Peer/ Secondary device name | String |
| isFailOpen | Is failopen | Boolean |
Example
Request
GET https://<NSM_IP>/domain/0/failoverpair/119
Response
{
"name": "NS9100_failover",
"templateDeviceId": 1004,
"peerDeviceId": 1003,
"templateDeviceName": "NS9100_NSM_API_FO_2",
"peerDeviceName": "NS9100_NSM_API_FO_1",
"isFailOpen": false
}
Error Information
Following error codes are returned by this URL:
| No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
| 1 | 404 | 1105 | Invalid domain |
| 2 | 404 | 5912 | Invalid cluster id/cluster not visible to this domain |