I am building a script to add event filters to multiple clusters across our environment. We are using PowerShell to accomplish this. When I use the setEventsLogsFilters POST method I can add in the event. However I cannot change the event filter by using the same json and changing the value I want to edit.
First hing before I post the script. I found that setEventsLogsFilters does not accept an array formatted json ([ ] bracketing multiple elements) so I have to place the inline json into a text file and I have to iterate through the different lines to get what I wanted.
Here is the script:
$rp4vmcl=import-csv-Path .\event_clusters.csv # Loads in the different cluster information
As I pointed out a POST works fine but if I change the POST to a PUT it fails with this:
Unrecognized field "JsonSubType" (Class com.emc.fapi.rest.version5_2.wrappers.SetSystemEventLogsFiltersParams), not marked as ignorable at [Source: org.apache.catalina.connector.CoyoteInputStream@131a6d2f; line: 1, column: 19] (through reference chain: com.emc.fapi.rest.version5_2.wrappers.SetSystemEventLogsFiltersParams["JsonSubType"])