Skip to content

[ BUG ] Get-FalconNgsCase ignores supplied parameters #536

Description

@colabus

PSFalcon 2.2.9
PowerShell 5.1

/cases/queries/cases/v1 has no entry in format/format.json, so Invoke-Falcon never maps the query parameters into the request.

They're silently discarded and no error is raised, and the API returns defaults.

This appears to be an omission rather than intended behaviour, since Get-FalconNgsCase defines all four parameters, and Sort has a ValidateSet of endpoint-specific values.

i.e. Get-FalconNgsCase -Limit 5 -Detailed

Suggested fix: add to format/format.json:

"/cases/queries/cases/v1": {
  "get": { "query": ["filter", "sort", "limit", "offset", "q"] }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfix availableSelf-applied fix available in issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions