SystemLink Forum

cancel
Showing results for 
Search instead for 
Did you mean: 

Goal: read tags using python library

Situation:

  • Self-hosted systemlink server
  • Using python with http configuration using login username and password
  • Trying to read tag using https://corp.com/nitag/v2/tags/[TAG NAME]/values/current/value
  • 401 unauthorized error through python
  • 401 unauthorized error through browser using same login
  • Can view tag and value in systemlink web gui using same login
  • Access control tab for one of the user roles allows all privileges for tags

 

Is there a special access control setting for using the web api? Why can I see a tag in the gui and not access it through the api with the same creds?

0 Kudos
Message 1 of 6
(120 Views)
0 Kudos
Message 2 of 6
(115 Views)

nisysmgmt/v1/systems works

0 Kudos
Message 3 of 6
(112 Views)

https://systemlink/nitag/v2/tags/[WORKSPACE]/[TAG] 

Works on browser!

But there doesn't seem to be a way to hit this endpoint in the python library?

0 Kudos
Message 4 of 6
(91 Views)

Have you tried to use the SystemLink Python API?

 

https://python-docs.systemlink.io/en/stable/getting_started.html#tag-api

Message 5 of 6
(61 Views)

Also are you using SystemLink Server or SystemLink Enterprise. Enterprise has a different API end point than the web server, so it requires a different URL.

Message 6 of 6
(59 Views)