I've not done much with the SDK and don't have very much programming/scripting experience at all, so please excuse the "noob" level of this question.
I have come across the CreateCustomProperty verb and very much want to use it to create a bunch of custom properties by having a powershell script loop through a csv file, excel file, or whatever kind of input method I end up creating. The problem I am having with the documentation is that none of the verbs that it does explain and none of the examples that are given address this particular verb and its cousin, CreateCustomPropertyValues. I see there are a bunch of parameters you can define with this property when you create it but many of the parameter names do not match the custom property entity values. See here:
If you look above, some are obvious. PropertyName is obviously the property's name, which is called "Field" in the Orion.CustomProperty entity table but others are ambiguous or completely cryptic to a non-programmer such as myself. ValueType for instance, does that correspond to the DataType field which is basically nvarchar/bit/datetime/real/int or does that correspond to the Table field, which is whether it is a Node/Interface/Application/Volumes/Report/Alert type of custom property? What is ValidRange for example, or Parser, Header, Alignment, Format, Units, or Usages for that matter? I mean, I think I know what some of those might be, but I don't really know nor do I have any clue on how to find out other than spinning up a lab system and going through a tedious system of trial and error.
Also, for Custom Properties that will have a list of Restricted values, how are those defined when scripting it in Powershell?
If someone could either explain these questions or, better yet, tell me an easy way to find out (you know, "teach a man to fish"?) then that would very helpful and much appreciated.
On a related subject, has SolarWinds released a full listing of its verbs with descriptions of all of their parameters yet? If not, why not? Looking in the PDF document that you get when you install the SDK, I see a handful of verbs are explained, why not just finish explaining the rest and then adding to that list whenever new verbs are created? Like I said, if there is an easy way to see which entity values these parameters map to, then by all means please show me and disregard this request, but if not, please SolarWinds, document the verbs completely. That would make this much easier for programming beginners to start learning and using the SDK.
EDIT: Ok, so I found this Link: Full documentation of Orion SDK verbs? and I got a little excited, but when I went and looked at the entity tables it talked about they really didn't answer my questions. I don't seen anything in the MetaData Verb entities that tell me which parameters map to which values. So, questions above still stand.
Message was edited by: Jordan Hume