Quantcast
Channel: THWACK: All Content - Orion SDK
Viewing all articles
Browse latest Browse all 2677

Adding a node to a container using rest api

$
0
0

Hi Thwack,

 

I need to add a node to a container.  The examples from both solarwinds and some other blogs reflect using XML.  Is it possible to form it into a rest call, using powershell?

 

forexample

 

$nodeSetting =

  @{

    containerId=$containerId

    MemberDefinitionInfo=???;

  }

  $nodeSettingjson = ConvertTo-Json $nodeSetting

  $url = "https://$($hostname):17778/SolarWinds/InformationService/v3/Json/Invoke/Orion.Container/AddDefinition"

  $result = Invoke-RestMethod -Uri $url -Credential $solarcreds -Method Post -Body $nodeSettingjson -ContentType application/json

 

Thanks


Viewing all articles
Browse latest Browse all 2677

Trending Articles



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