cohesity / cohesity-powershell-module

This repository provides a PowerShell Module for Cohesity DataPlatform. https://cohesity.github.io/cohesity-powershell-module
Apache License 2.0
42 stars 16 forks source link

Fix all tables to be Objects #233

Open DavidSeaton opened 1 year ago

DavidSeaton commented 1 year ago

🚀 Feature Request

Change all PowerShell outputs to be real Objects instead of tables.

Example or reference

I need to get all Agents based on HostOsType, Name, and HealthStatus. Get-CohesityAgentStatus is a great commandlet to provide just those fields. Filtering is great. Get-CohesityAgentStatus |ft hostostype, hostip, healthstatus|?{$.healthstatus -eq 'kUnHealthy' -and $.hostostype -eq 'kLinux'}

However, can't pipe the output to something like Unregister-CohesityProtectionSource

Get-CohesityPhysicalAgent is the other commandlet option, however it doesn't provide those basic attributes. Not allowing any kind of useful filtering.

I have run into similar problems with cohesity-powershell-module. affectedly hampering the ability to get things done or having to create gross and unnecessarily complicated workarounds.

BTW CohesityAgentStatus show agent unhealthy while CohesityPhysicalAgent show agent healthy.

KavishreeShanmugam11 commented 1 year ago

ACK