The response to this request will specify whether you have email alerts set, and which events will trigger emails. This is a global setting for all clusters. You need to be authenticated to read this value:
shell> curl -u Administrator:letmein http://localhost:8091/settings/alertsGET /settings/alerts HTTP/1.1 Host: localhost:8091 Authorization: Basic YWRtaW46YWRtaW4= Accept: */*
{ "recipients": ["root@localhost"], "sender":"couchbase@localhost", "enabled":true, "emailServer":{"user":"","pass":"","host":"localhost","port":25,"encrypt":false}, "alerts": ["auto_failover_node", "auto_failover_maximum_reached", "auto_failover_other_nodes_down", "auto_failover_cluster_too_small"] }
Possible errors include:
This endpoint isn't available yet.