Revision 64dae8fc doc/rapi.rst
b/doc/rapi.rst | ||
---|---|---|
464 | 464 |
... |
465 | 465 |
] |
466 | 466 |
|
467 |
``/2/nodes/[node_name]/role`` |
|
468 |
+++++++++++++++++++++++++++++ |
|
469 |
|
|
470 |
Manages node role. |
|
471 |
|
|
472 |
It supports the following commands: ``GET``, ``PUT``. |
|
473 |
|
|
474 |
The role is always one of the following: |
|
475 |
|
|
476 |
- drained |
|
477 |
- master |
|
478 |
- master-candidate |
|
479 |
- offline |
|
480 |
- regular |
|
481 |
|
|
482 |
``GET`` |
|
483 |
~~~~~~~ |
|
484 |
|
|
485 |
Returns the current node role. |
|
486 |
|
|
487 |
Example:: |
|
488 |
|
|
489 |
"master-candidate" |
|
490 |
|
|
491 |
``PUT`` |
|
492 |
~~~~~~~ |
|
493 |
|
|
494 |
Change the node role. |
|
495 |
|
|
496 |
The request is a string which should be PUT to this URI. The result will be a |
|
497 |
job id. |
|
498 |
|
|
499 |
It supports the ``force`` argument. |
|
500 |
|
|
467 | 501 |
``/2/nodes/[node_name]/tags`` |
468 | 502 |
+++++++++++++++++++++++++++++ |
469 | 503 |
|
Also available in: Unified diff