[MXS-1399] Allow multiple server states to be set with one REST API call Created: 2017-09-08  Updated: 2018-10-30  Resolved: 2018-10-30

Status: Closed
Project: MariaDB MaxScale
Component/s: N/A
Affects Version/s: None
Fix Version/s: N/A

Type: New Feature Priority: Minor
Reporter: markus makela Assignee: markus makela
Resolution: Won't Do Votes: 0
Labels: None


 Description   

The server resources in the MaxScale REST API should allow multiple server states to be set with one request. This allows the status of a whole cluster to be set at once.



 Comments   
Comment by markus makela [ 2018-04-03 ]

Can be done by expanding the PATCH method to allow explicit server states to be set. For example, setting the server's state attribute to the value of "Master, Running" would be interpreted the same way as the following requests:

PUT /v1/servers/db-server-1/set?state=master
PUT /v1/servers/db-server-1/set?state=running

Comment by markus makela [ 2018-10-30 ]

Setting servers states isn't really relevant anymore as manually setting the states isn't desired.

Generated at Thu Feb 08 04:06:27 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.