Search:

Search all manuals
Search this manual
Manual
Couchbase Server Manual 1.8
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
8 REST API for Administration
Chapter Sections
Chapters

8.9. Retrieve Auto-Failover Settings

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/autoFailover

If 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:

The HTTP request and response are as follows:

HTTP Request
GET /settings/autoFailover HTTP/1.1
Host: node.in.your.pool.com
Authorization: Basic YWRtaW46YWRtaW4=
Accept: */*
HTTP Response
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