LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically Read/Write Custom Metadata to System in SystemLink

Solved!
Go to solution

 Is there a programmatic way to read/write the custom metadata fields in a SystemLink managed system? I've looked at the SystemLink palette but do not see an obvious way to accomplish this.

 

CAC10268_0-1596641159058.png

 

0 Kudos
Message 1 of 3
(1,529 Views)
Solution
Accepted by topic author CAC10268

This is far from complete, but I added a simple example on how to read the system metadata using the HTTP API.  You can get more information on the HTTP API if you click on the ? in SystemLink on the top right when you have the Systems Manager application open.

 

https://github.com/joshuaprewitt/systemlink-labview-http-examples

 

You would have to use the /v1/systems/managed/{id} route to update the metadata, however doing a PATCH in LV can be a little tricky.

 

Also parsing the properties dictionary will require some string parsing, because the normal Flatten from JSON doesn't support them.

 

I'll try to improve the example when I have some more time to work on it.

Message 2 of 3
(1,492 Views)

Have you made any updates to this?

0 Kudos
Message 3 of 3
(1,042 Views)