solarwinds / OrionSDK

SDK for the SolarWinds Orion platform, including tools, documentation, and samples in PowerShell, C#, Go, Perl, and Java.
https://thwack.com/OrionSDK
Apache License 2.0
401 stars 144 forks source link

Orion.Accounts Schema/UpdateAccount documentation Potentially Incorrect #174

Open matthorgan opened 5 years ago

matthorgan commented 5 years ago

When using Invoke-SwisVerb with the EntityName Orion.Accounts and Verb UpdateAccount to update a group account, I get an error that says 'Invalid data: CanClearEvents, Enabled'. Looking at the Accounts table in the database, the actual properties that it expects are called AccountEnabled and AllowEventClear respectively. If I change the CanClearEvents and Enabled properties to use these names, everything works fine.

I believe the API/GitHub documentation may need to be updated to reflect this.

danjagnow commented 5 years ago

Are you referring to documentation about Orion accounts in the wiki? I see a reference to CanClearEvents there. Are there other areas that need correction?

matthorgan commented 5 years ago

Hey @danjagnow. Yeah, in the Wiki documentation and the Schema, it says that the properties are CanClearEvents and Enabled. The ones that actually worked for me are AccountEnabled and AllowEventClear.