Adding Documentation for Creating Email Destinations

Signed-off-by: Aditya Jindal <aditjind@amazon.com>
This commit is contained in:
Aditya Jindal 2021-06-22 18:21:34 -07:00
parent 85d9de759c
commit e7cc6db397
1 changed files with 22 additions and 0 deletions

View File

@ -912,6 +912,28 @@ POST _plugins/_alerting/destinations
"host": "hooks.chime.aws"
}
}
POST _plugins/_alerting/destinations
{
"type": "email",
"name": "my-email-destination",
"email": {
"email_account_id": "YjY7mXMBx015759_IcfW",
"recipients": [
{
"type": "email_group",
"email_group_id": "YzY-mXMBx015759_dscs"
},
{
"type": "email",
"email": "example@email.com"
}
]
}
}
// The email_account_id and email_group_id will be the document IDs of the email_account and email_group you have created.
```
#### Sample response