Skip to content

Instantly share code, notes, and snippets.

@1RedOne
Created March 22, 2016 14:43
Show Gist options
  • Save 1RedOne/dfe8a4e3e27f4711194e to your computer and use it in GitHub Desktop.
Save 1RedOne/dfe8a4e3e27f4711194e to your computer and use it in GitHub Desktop.
PowerShell objects are tricky
$Body = @"
[{
"action": "EventsRouter",
"method": "query",
"data": [{
"uid": "/zport/dmd/",
"params": {
"eventState": [0, 1],
"severity": [5, 4, 3, 2],
"excludeNonActionables": false
},
"keys": ["eventState", "severity", "device", "component", "eventClass", "summary", "firstTime", "lastTime", "count", "evid", "eventClassKey", "message"],
"page": 1,
"start": 0,
"limit": 200,
"sort": "severity",
"dir": "DESC"
}],
"type": "rpc",
"tid": 385
}]
"@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment