The Add Mirror Machine API

Using the Add Mirror Machine API, you can add a server to a mirror group.
METHOD POST
URI
https://<historianservername>/historian-rest-api/v1/mirrormachine
SAMPLE URI
https://<historianservername>/historian-rest-api/v1/mirrormachine

Payload

{
"mirrorStorageName": "Mirror2",

"mirrorMachineName": "distmachine1"

}
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/mirrormachine

Query Parameters

Parameter Description Required? Values
Payload Contains the machine name of the server that you want to add. 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.