Hi THWACK community,
Does anyone know the correct values and construction for the Usages argument of the CreateCustomProperty verb? I'm looking to fully understand it so that I can translate the knowledge into any language I have to use in the future.
This is similar to another old post, but I couldn't reply to it: https://thwack.solarwinds.com/product-forums/the-orion-platform/f/orion-sdk/45467/what-is-syntax-for-usages-dictionary
The Schema listed in the OrionSDK github site for this verb is pending completion: http://solarwinds.github.io/OrionSDK/2020.2/schema/Orion.NodesCustomProperties.html
The default value for this field will create a Custom Property with the following:
I've tried combinations of the following (removed the opening less-than signs of the XML so that it would print in the code block)
ArrayOfKeyValueOfstringboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> { "IsForAlerting": true, "IsForFiltering": true, "IsForGrouping": true, "IsForReporting": true, "IsForEntityDetail": true, "IsForAssetInventory": true } /ArrayOfKeyValueOfstringboolean>
ArrayOfKeyValueOfstringboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> [ {"IsForAlerting": true}, {"IsForFiltering": true}, {"IsForGrouping": true}, {"IsForReporting": true}, {"IsForEntityDetail": true}, {"IsForAssetInventory": true} ] /ArrayOfKeyValueOfstringboolean>
Based on the example on the SwaggerUI page: https://solarwinds.github.io/OrionSDK/swagger-ui/#/Verbs/OrionAPMApplicationCustomPropertiesCreateCustomProperty
...I tried:
ArrayOfKeyValueOfstringboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> [ { "Key": "IsForAlerting", "Value": true }, { "Key": "IsForFiltering", "Value": false }, { "Key": "IsForGrouping", "Value": false }, { "Key": "IsForReporting", "Value": false }, { "Key": "IsForEntityDetail", "Value": false }, { "Key": "IsForAssetInventory", "Value": true } ] /ArrayOfKeyValueOfstringboolean>
Haven't had any luck yet.
Also, if someone knows the above, do you also know what the name would be for the "Account Limitations" usage?