Setting email notifications

Setting email notifications

HTTP method and URI

GET /settings/alerts

Syntax

Curl request syntax:

curl -u [admin]:[password ]
    http://[localhost]:8091/settings/alerts

Raw HTTP request syntax:

GET /settings/alerts HTTP/1.1
Host: [localhost]:8091
Authorization: Basic YWRtaW46YWRtaW4= Accept: */*

Example

Curl request example:

curl -u admin:password 
    http://10.5.2.54:8091/settings/alerts

Raw HTTP request example:

GET /settings/alerts HTTP/1.1
Host: 10.5.2.54:8091
Authorization: Basic YWRtaW46YWRtaW4= Accept: */*

Response

{
    "alerts": [
        "auto_failover_node", 
        "auto_failover_maximum_reached", 
        "auto_failover_other_nodes_down", 
        "auto_failover_cluster_too_small", 
        "ip", 
        "disk", 
        "overhead", 
        "ep_oom_errors", 
        "ep_item_commit_failed"
    ], 
    "emailServer": {
        "encrypt": false, 
        "host": "localhost", 
        "pass": "", 
        "port": 25, 
        "user": ""
    }, 
    "enabled": false, 
    "recipients": [
        "root@localhost"
    ], 
    "sender": "couchbase@localhost"
}

Response codes

Possible errors include:

This endpoint isn't available yet.