#Ontap Select & PowerShell

1 messages · Page 1 of 1 (latest)

potent sand
#

Hi All,
Do you know if Select Deploy have some command available by power shell ?
If I need to stop some cluster in my Deploy, and do it by powershell, i cna use the halt in ssh commandlet, but Select Deploy isn'y aware about this halt ...

How to stop my cluster by the Select Deploy VM ?
Thanks

left relic
# potent sand Hi All, Do you know if Select Deploy have some command available by power shell...

For REST API documentation (Swagger) for Deploy use https://{deployIP}/api/v3/ui/ - there's also a link in the Deploy GUI to this as well (? icon top right - API Documentation). Good place to try out REST calls and see results - or use Postman.
Use Invoke-RestMethod with -Method PATCH -Uri https://{deployip}/api/v3/clusters/{clusterID}?force=state with a -Body {"availability": "powered_off"}.
You will probably need to get the ClusterID from Deploy in a separate REST call - something like /clusters?name={clustername}