The Delete Mirror Machine API

Using the Delete Mirror Machine API, you can remove a server from a mirror group.
METHOD DELETE
URI
https://<historianservername>/historian-rest-api/v1/mirrormachine
SAMPLE URI
https://<historianservername>/historian-rest-api/v1/mirrormachine

Payload

{

"mirrorStorageName": "Mirror 2",

"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\”,
\” mirrorMachineName\”:\”name\”}” -X DELETE https://<historianservername>/historian-rest-api/v1/mirrormachine

Query Parameters

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