The Local OPC Servers API

Using the Local OPC Servers API, you can view the list of OPC servers installed on a specified machine.
METHOD GET
URI
http://<historianservername>/v1/localopcservers/<machine name>
SAMPLE QUERY PARAM GET URL
http://<historianservername>/v1/localopcservers/<machine name>
SAMPLE RESPONSE
{
    "ErrorCode": 0,
    "ErrorMessage": null,
    "ServerIDs": [
        "ID1",
        "ID2     "
    ]
}
SAMPLE cURL COMMAND
curl -i -H "Accept: application/json" -H "Authorization: Bearer <TOKEN>” 
https://<historianservername>/historian-rest-api/v1/localopcservers/xyz

Query Parameters

Parameter Description Required? Values
machine name The machine name of the OPC server. Yes String

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.