The Get DHS Machines API

Using the Get DHS Machines API, you can view the list of DHS machines in a location.
METHOD GET
URI
https://<historianservername>/historian-rest-api/v1/dhsmachines?storageName=
SAMPLE QUERY PARAM GET URL
https://<historianservername>/historian-rest-api/v1/dhsmachines?storageName=xx
SAMPLE RESPONSE
{

    "ErrorCode": 0,

    "ErrorMessage": null,

    "Data": [

        {

            "NodeName": "xyz",

            "IsAlreadyAdded": true

        }

    ]

}

 }
SAMPLE cURL COMMAND
curl -i -H "Accept: application/json" -H "Authorization: Bearer <TOKEN>” 
https://<historianservername>/historian-rest-api/v1/dhsmachines?storageName=xxx

Query Parameters

Parameter Description Required? Values
storageName The value of the location whose DHS machines you want to view. 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.