Use this request to retrieve any auto-failover settings for a cluster. Auto-failover is a global setting for all clusters. You need to be authenticated to read this value. Example:
shell> curl -u Administrator:letmein http://localhost:8091/settings/autoFailoverIf successful Couchbase Server returns any auto-failover settings for the cluster as JSON:
{"enabled":false,"timeout":30,"count":0}The following parameters and settings appear:
enabled: either true if auto-failover
is enabled or false if it is not.
timeout: seconds that must elapse
before auto-failover executes on a cluster.
count: can be 0 or 1. Number of times
any node in a cluster can be automatically failed-over. After
one auto-failover occurs, count is set to 1 and Couchbase
server will not perform auto-failure for the cluster again
again unless you reset the count to 0. If you want to failover
more than one node at a time in a cluster, you will need to do
so manually. do it manually.
The HTTP request and response are as follows:
GET /settings/autoFailover HTTP/1.1 Host: node.in.your.pool.com Authorization: Basic YWRtaW46YWRtaW4= Accept: */*
HTTP/1.1 200 OK Content-Type: application/json Content-Length: nnn { "enabled": false, "timeout": 30, "count": 0 }
Possible errors include:
This endpoint isn't available yet. HTTP 401 Unauthorized