rubrikinc / rubrik-powershell-sdk

The Rubrik Security Cloud SDK
https://www.powershellgallery.com/packages/RubrikSecurityCloud
MIT License
7 stars 8 forks source link

'Invoke-Rsc -Query' returns scaffolded object with nulls, even if query does not return data #3

Closed therealgill closed 1 year ago

therealgill commented 1 year ago

This may be 'as designed'. If so, please ignore.

Description:

When running an 'Invoke-Rsc -Query' command and specifying a subset of the attributes to be returned, additional attributes are returned as null. For instance: image

Notice how only node.id and node.name were requested, but Count, Edges, and PageInfo were returned. Likewise... image

The node objects in the collection also have unrequested attributes (node.GuestOsType, node.ProtectionDate, node.Cluster, as well as all other hidden properties).

guirava commented 1 year ago

Thank you for your feedback. Your question generated a new entry in the FAQ:

https://github.com/rubrikinc/rubrik-powershell-sdk/blob/main/docs/faq.md#faq2-nulls-in-response