Quantcast
Channel: THWACK: All Content - All Communities
Viewing all articles
Browse latest Browse all 13537

REST HTTP Post SWIS Invoke Orion.NodesCustomProperties/ModifyCustomProperty Syntax

$
0
0

Hello Thwack Community,

 

Trying to create automation to keep our custom properties in sync across multiple instances of Orion.

I am attempting to do so using a HTTP Post to utilize REST with INVOKE function - Getting 500 Error which is likely related to the syntax of my JSON array/post data being incorrect.

Can someone please advise how to properly set the json array for the "Values" verbargument? I've been able to do this successfully in Powershell, but the same format doesn't work..

 

tdanner - I tried to use the same formatting using the json array you referenced in a previous post - but I know I'm missing something (big or small).

Thanks for the help again btw, I was able to work several other verbs into my automation(like auto-alert acknowledgement with ticket update in alert notes) due to your assistance.

 

URL:

 

https://localhost:17778/SolarWinds/InformationService/v3/Json/Invoke/Orion.NodesCustomProperties/ModifyCustomProperty

 

POST DATA:

 

[

    "Site_Code",

    "3 character site code identifier",

    4000,

    [

    {"value" =  "Site_Code_Value_1"},

    {"value" =  "Site_Code_Value_2"},

    {"value" =  "Site_Code_Value_3"},

    {"value" =  "Site_Code_Value_4"},

    {"value" =  "Site_Code_Value_5"}

    ]

]

 

I've also tried:

 

[

    "Site_Code",

    "3 character site code identifier",

    4000,

  [

    {"values[0]" =  "Site_Code_Value_1"},

    {"values[1]" =  "Site_Code_Value_2"},

    {"values[2]" =  "Site_Code_Value_3"},

    {"values[3]" =  "Site_Code_Value_4"},

    {"values[4]" =  "Site_Code_Value_5"}

   ]

]

 

 

Thank you,

 

=SWQL


Viewing all articles
Browse latest Browse all 13537

Trending Articles



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