Skip to content

get-intersightviewserver passes unsupported inlinecount param #206

@dsoper2

Description

@dsoper2

Describe the bug
get-intersightviewserver automatically pass $inlinecount which is not a supported query param on the resource

To Reproduce
get-intersightviewserver -count $true
Get-IntersightViewServer: Error calling GetViewServerList: {"code":"InvalidUrl","message":"The OData query parameter '$inlinecount' is not supported in query '%24top=1000\u0026%24count=true\u0026%24inlinecount=allpages'.","messageId":"barcelona_odata_unsupported_query_parameter","messageParams":{"1":"$inlinecount","2":"%24top=1000\u0026%24count=true\u0026%24inlinecount=allpages"},"traceId":"JPM43ySuXfOjrmx9c9Eap8cvQJIQEJAxSBfU5fAnlMjn7ytpCYXQGQ=="}

Version used
PSVersion 7.5.3
get-module -name "intersight.Powershell" | Select Version

Version

1.0.11.2025101412

Expected behavior
There should be a way to turn off automatic query params if resources don't support them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions