REST APIs for Managing Tag Data
This topic provides REST APIs that you can use to manage tags. You can add, access, modify, rename, and delete tags.
Parameter | Value |
---|---|
Method | GET |
URI | https://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/raw/<tag names>/<start>/<end>/<direction>/<count> Tip: To find the NLB DNS:
|
Authorization | Bearer <token> |
Content type | application/json |
Sample URI |
|
Sample cURL commands |
|
Query parameters |
|
Parameter | Value |
---|---|
Method | POST |
URI | https://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/raw/<start>/<end>/<direction>/<count> |
Authorization | Bearer <token> |
Content type | application/json |
Sample URI |
|
Sample cURL commands |
|
Query parameters |
|
Body |
|
Example |
|
Parameter | Value |
---|---|
Method | GET |
URI | https://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/interpolated/<start>/<end>/<count>/<interval in milliseonds> |
Authorization | Bearer <token> |
Content type | application/json |
Sample URI | https://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/interpolated/tagName1/2013-10-02T11:30:00.111111Z/2013-10-02T11:31:11.111Z/100/10000 |
Sample cURL commands | curl -i -H "Accept: application/json" -H "Authorization: Bearer <token>http://<NLB DNS of Proficy Historian for Cloud>:9090/ historian-rest-api/v1/datapoints/interpolated/<tag name>/<start time>/<end time>/<count>/<interval in milliseconds> |
Query parameters |
|
Body |
|
Example |
|
Parameter | Value |
---|---|
Method | POST |
URI | https://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/interpolated/<start>/<end>/<count>/<interval in milliseonds>
|
Authorization | Bearer <token> |
Content type | application/json |
Sample URI | https://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/interpolated/2013-10-02T11:30:00.111111Z/2013-10-02T11:31:11.111Z/100/10000 |
Sample cURL commands | curl -i -H "Accept: application/json" -H "Authorization: Bearer <token>http://<NLB DNS of Proficy Historian for Cloud>:9090/ historian-rest-api/v1/datapoints/interpolated/<start time>/<end time>/<count>/<interval in milliseconds> |
Query parameters |
|
Body |
|
Example |
|
Parameter | Value |
---|---|
Method | GET |
URI | https://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/currentvalue |
Authorization | Bearer <token> |
Content type | application/json |
Sample URI | https://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/currentvalue?tagNames=tagName1 |
Sample cURL commands | curl -i -H "Accept: application/json" -H "Authorization: Bearer <token>http://<NLB DNS of Proficy Historian for Cloud>:9090/ historian-rest-api/v1/datapoints/currentvalue/<tag name> |
Query parameters | Tag names: The names of tags whose data you want to retrieve. |
Body |
|
Example |
|
Parameter | Value |
---|---|
Method | POST |
URI | https://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/currentvalue
|
Authorization | Bearer <token> |
Content type | application/json |
Sample URI | https://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/currentvalue |
Sample cURL command | curl -i X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer <token>-d {\tagNames\:\<tag name>\}http://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/currentvalue |
Query parameters | Tag names: The names of tags whose data you want to retrieve. |
Body |
|
Example |
|
Parameter | Value |
---|---|
Method | GET |
URI | https://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/sampled/<tag names>/<start time>/<end time>/<direction>/<count>/<interval> |
Authorization | Bearer <token> |
Content type | application/json |
Sample URI | https://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/sampled?tagNames=tagName1&start=2013-10-02T11:30:00.111Z&end=2013-10-02T11:31:11.111Z&samplingMode=1&calculationMode=1&direction=0&count=0&intervalMs=1000 |
Sample cURL commands | curl -i -H "Accept: application/json" -H "Authorization: Bearer <token>http://<NLB DNS of Proficy Historian for Cloud>:8843/historian-rest-api/v1/datapoints/sampled/<tag name>/<start time>/<end time>/<direction>/<count>/<interval> |
Query parameters |
|
Body |
|
Example |
|
Parameter | Value |
---|---|
Method | POST |
URI | https://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/sampled/<tag names>/<start time>/<end time>/<direction>/<count>/<interval> |
Authorization | Bearer <token> |
Content type | application/json |
Sample URI | https://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/sampled?tagNames=tagName1&start=2013-10-02T11:30:00.111Z&end=2013-10-02T11:31:11.111Z&samplingMode=1&calculationMode=1&direction=0&count=0&intervalMs=1000 |
Sample cURL command | curl -i X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer <token>-d { \tagNames\:\<value>\, \start\: \<value>\, \end\: \<value>\, \samplingMode\: <value>, \calculationMode\: <value>, \direction\: <value>, \count\: <value>, \returnDataFields\: <value>, \intervalMs\: <value>, \queryModifier\: <value>, \filterMode\: <value>, \filterExpression\: \<value>\}http://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/sampled |
Query parameters |
|
Body |
|
Example |
|
Parameter | Value |
---|---|
Method | GET |
URI | https://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/trend/<tag names>/<start time>/<end time>/<direction>/<count>/<interval> |
Authorization | Bearer <token> |
Content type | application/json |
Sample URI | https://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/trend?tagNames=tagName1&start=2013-10-02T11:30:00.111Z&end=2013-10-02T11:31:11.111Z&samplingMode=1&calculationMode=1&direction=0&count=0&intervalMs=1000 |
Sample cURL commands | curl -i -H "Accept: application/json" -H "Authorization: Bearer <token>http://<NLB DNS of Proficy Historian for Cloud>:8843/historian-rest-api/v1/datapoints/trend/<tag name>/<start time>/<end time>/<direction>/<count>/<interval> |
Query parameters |
|
Body |
|
Example |
|
Parameter | Value |
---|---|
Method | POST |
URI | https://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/trend/<tag names>/<start time>/<end time>/<direction>/<count>/<interval> |
Authorization | Bearer <token> |
Content type | application/json |
Sample URI | https://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/trend?tagNames=tagName1&start=2013-10-02T11:30:00.111Z&end=2013-10-02T11:31:11.111Z&samplingMode=1&calculationMode=1&direction=0&count=0&intervalMs=1000 |
Sample cURL command | curl -i X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer <token>-d { \tagNames\:\<value>\, \start\: \<value>\, \end\: \<value>\, \trend\: <value>, \calculationMode\: <value>, \direction\: <value>, \count\: <value>, \returnDataFields\: <value>, \intervalMs\: <value>, \queryModifier\: <value>, \filterMode\: <value>, \filterExpression\: \<value>\}http://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/sampled |
Query parameters |
|
Body |
|
Example |
|
Parameter | Value |
---|---|
Method | GET |
URI | https://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/configuration/maxDataQueryResultSize=<value> The minimum number of query result size to enter is 1000. |
Authorization | Bearer <token> |
Content type | application/json |
Sample URI | https://<NLB DNS of Proficy Historian for Cloud>:9090/historian-rest-api/v1/datapoints/configuration/maxDataQueryResultSize=6000 |
Sample cURL commands | curl -i -H "Accept: application/json" -H "Authorization: Bearer <token>https://<NLB DNS of Proficy Historian for Cloud>:9090/ historian-rest-api/v1/datapoints/configuration?maxDataQueryResultSize=<value> |
Query parameters | maxDataQueryResultSize: The maximum number of query results that you want to retrieve. |