This post is more than 5 years old

812

May 10th, 2018 08:00

Modify SyncIQ policies via the OneFS API

Hello.  We're running OneFS 8.1.0.2.

I'm able to write some commands to query the OneFS API to provide me information about my SyncIQ policies.  I'm looking to modify one of my policies, specifically, to disable it via the API.  I'm having some problems getting the syntax of the JSON file right.  I tried just doing a short {"enabled": false} and doing a PUT against the policy I'm interested in, but getting a "AEC_BAD_REQUEST" "Invalid JSON input" error on that.

I also dumped out the config of the policy to a JSON file, modified the "enabled" value and then did a PUT right back to the Isilon.  Got another "AEC_BAD_REQUEST" error on that with both a "Field: policies has error: A property was present that is not defined by the schema." and a "Input validation failed." error.

Any ideas?

Jason

May 10th, 2018 08:00

One of those "cases" where I solved my own problem a minute later.  I had a capital "F" on false in my JSON file.  Changing it to lower case did the trick.

Top