atkinsroy / HPESimpliVity

PowerShell Module for managing HPE SimpliVity objects via the REST API.
MIT License
11 stars 10 forks source link

Check balance status of a svthost #11

Open vkiehn opened 3 weeks ago

vkiehn commented 3 weeks ago

until now the balance status of a svthost is not shown.

I want to monitor the state, if a dsv-balance-disable was given. Please add the outputs to get-svthost

Thanks V. Kiehn

atkinsroy commented 1 week ago

There is nothing in the API that provides information about the resource balancing service directly. I think dsv-balance-show hooks into the backend database on the OVC's which just isn't exposed in the API. You can monitor free space (shows a similar value to "Estimated Remaining Space" when you run dsv-balance-show with no parameters). You can also show cluster throughput with Get-SvtThroughput (similar to dsv-balance-show --consumption). That's about it, I'm afraid.

I'll take a look to see if I'm missing something, but I'm pretty sure the commands display all attributes provided by the current API. The only other way to do this from PowerShell is to "scrape" the results of running a dsv-balance-show command remotely. This would be a departure from the current "API only" approach taken to write the module.