#Ontap Select & PowerShell
1 messages · Page 1 of 1 (latest)
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}