Quiescing high availability nodes via script or command line

Hi,

https://docs.pega.com/bundle/platform-88/page/platform/system-administration/high-availability-nodes-quiescing.html

talks about how to Quiesce high availability node via “HA Cluster Management” page in “Dev Studio”

Now we want to implement auto scaling in/out nodes, thus need to automate the Quiesce process

Is there any script, or command line, that we can execute to Quiesce a node?

There are REST API’s that can put and take a node out of quiescent state.

System Management

POST /nodes/{nodeID}/quiesce

POST /nodes/{nodeID}/unquiesce

You can use these in scripting as needed.