Quantcast
Channel: THWACK: Popular Discussions - Orion SDK
Viewing all articles
Browse latest Browse all 3719

Download NCM config's via SDK in Python

$
0
0

Hi,

 

Just in case anyone else gets stuck with this unhelpful message from Orion when triggering NCM configuration downloads with the Python SDK:

Could not cast or convert from System.String to System.Guid[]

It's down to nodeId needing to be an array!

 

Some example code:

 

node_ids = []
transfer_id = {}
node_data = swis.query("SELECT NodeID FROM Cirrus.Nodes WHERE NodeCaption=@node", node=node)

node_ids.append(node_data['results'][0]['NodeID'])

orion_data = swis.invoke("Cirrus.ConfigArchive",  "DownloadConfig", node_ids, "running")
transfer_id['running'] = orion_data[0]

Viewing all articles
Browse latest Browse all 3719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>