The Create Mirror Group API

Using the Create Mirror Group API, you can create a mirror group.
METHOD POST
URI
https://<historianservername>/historian-rest-api/v1/mirrorgroup
SAMPLE URI
https://<historianservername>/historian-rest-api/v1/mirrorgroup

Payload

{
"mirrorStorageName": "storagename",

"nodes": "node1;node2"

}
SAMPLE RESPONSE
{

    "ErrorCode": 0,

    "ErrorMessage": null

}
SAMPLE cURL COMMAND
curl -i -H "Accept: application/json" -i -H "Content-Type: application/json" -H "Authorization: Bearer <TOKEN>” 
-d “{ \” mirrorStorageName \”:\”name\”,\" nodes \": \"xx;yy\"}” -X POST https://<historianservername>/historian-rest-api/v1/mirrorgroup

Query Parameters

Parameter Description Required? Values
Payload Contains the mirror group name and the servers you want to add to the group. Yes Multiple

Response Parameters

Parameter Data Type Required? Description
ErrorCode Integer Yes For example, ErrorCode = 0 implies the operation was successful.
ErrorMessage String Yes For example, NULL.