diff options
author | Jan Lehnardt <jan@apache.org> | 2014-10-31 17:36:21 +0100 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2014-10-31 17:36:21 +0100 |
commit | 38eaa88e6223c518aca1ed90154c59462974e1ea (patch) | |
tree | cd9660ba40fce97e506daaa0f56f02b3792ce94d | |
parent | ecf310a69ff9fc86f76513c356b2f23e6d583c23 (diff) | |
download | couchdb-38eaa88e6223c518aca1ed90154c59462974e1ea.tar.gz |
add delete_node API
-rw-r--r-- | README.md | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -58,7 +58,8 @@ UI shows an “Add Node” interface with the fields admin, and node: - POST to /_setup with { "action": "add_node", - "admin": { // should be auto-filled from Fauxton + "admin": { // should be auto-filled from Fauxton, store plaintext PW in + // localStorage until we finish_cluster or timeout. "user": "username", "pass": "password" }, @@ -135,6 +136,8 @@ POST /_setup {"action":"add_node"...} -> Stay in State 2, but return "nodes":["n POST /_setup {"action":"add_node"...} -> if target node not available, Error POST /_setup {"action":"finish_cluster"} with no nodes set up -> Error POST /_setup {"action":"finish_cluster"} -> Transition to State 3 +POST /_setup {"action":"delete_node"...} -> Stay in State 2, but delete node from /nodes, reflect the change in GET /_setup +POST /_setup {"action":"delete_node","node":"unknown"} -> Error Unknown Node ### State 3: Cluster set up, all nodes operational @@ -146,5 +149,7 @@ POST /_setup {"action":"enable_cluster"...} -> Error POST /_setup {"action":"finish_cluster"...} -> Stay in State 3, do nothing POST /_setup {"action":"add_node"...} -> Error POST /_setup?i_know_what_i_am_doing=true {"action":"add_node"...} -> Add node, stay in State 3. +POST /_setup {"action":"delete_node"...} -> Stay in State 3, but delete node from /nodes, reflect the change in GET /_setup +POST /_setup {"action":"delete_node","node":"unknown"} -> Error Unknown Node -// TBD: we need to persist the setup state somewhere.
\ No newline at end of file +// TBD: we need to persist the setup state somewhere. |