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

How to set select a custom property field using the SDK

$
0
0

Hello,

I am trying to leverage the example PS script to automate the setting of custom properties of my environment however I have a question about the example.  Here is the example:

 

$nodeId=8# NodeID of a node which custom properties you want to change

 

 

# prepare a custom property value

 

$customProps= @{

 

  Comments="Custom comment";

 

}

 

build the node URI

 

$uri="swis://localhost/Orion/Orion.Nodes/NodeID=$nodeId/CustomProperties";

 

# set the custom property

Set-SwisObject$swis-Uri $uri-Properties $customProps

 

 

However this example doesn't illustrate how to select the custom property column you want to set.  How would I do this?  Thank you!!

 

 

Reference: OrionSDK/CRUD.SettingCustomProperty.ps1 at PowerOrion · solarwinds/OrionSDK · GitHub


Viewing all articles
Browse latest Browse all 3719

Trending Articles



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