@@ -38,7 +38,6 @@ A typical e-mail account looks like this:
```json
{
"type":"email",
"host":"smtp.example.com",
"port":465,
"user":"signals",
...
...
@@ -57,7 +56,7 @@ A typical e-mail account looks like this:
| password | The password user for authentication. Optional. |
| enable\_tls | If true, the connection is established by TLS. |
| enable\_start\_tls | If true, the connection is established using STARTTLS. |
| trusted_hosts | Only accept server certificates issued to one of the provided hostnames, *and disables certificate issuer validation.* Optional; array of host names. *Security warning: Any certificate matching any of the provided host names will be accepted, regardless of the certificate issuer; attackers can abuse this behavior by serving a matching self-signed certificate during a man-in-the-middle attack.* |
| trusted_hosts | Only accept server certificates issued to one of the provided hostnames, *and disables certificate issuer validation.* Optional; array of host names. *Security warning: Any certificate matching any of the provided host names will be accepted, regardless of the certificate issuer; attackers can abuse this behavior by serving a matching self-signed certificate during a man-in-the-middle attack.* |
| trust_all | If true, trust all hosts and don't validate any SSL keys. Optional. |
| default_from | Defines the from address used in e-mails when an e-mail action does not configure an explicit from address. Optional. |
| default\_to, default\_cc, default\_bcc | Defines the recipient addresses used in e-mails when an e-mail action does not configure an explicit values for the respective recipient types. Optional; array of e-mail addresses |
...
...
@@ -73,12 +72,11 @@ A Slack account looks rather simple:
The value for the `url` property must be optained by creating a Slack App inside Slack. See the [Slack docs](https://api.slack.com/incoming-webhooks) for details.
The value for the `url` property must be obtained by creating a Slack App inside Slack. See the [Slack docs](https://api.slack.com/incoming-webhooks) for details.
Deletes the account identified by the `{account_id}` path parameter.
**Important:** Right now, it is possible to delete accounts even if they are still used by watches. After deleting an account which is still used by a watch, the watch will fail to execute.
Deletes the account of type `{account_type}` identified by the `{account_id}` path parameter.
## Path Parameters
**{account_type}** The type of the account to be deleted. Required.
**{account_id}** The id of the account to be deleted. Required.
## Responses
...
...
@@ -46,9 +46,13 @@ The user does not have the permission to delete accounts.
An account with the given id does not exist.
### 409 Conflict
The account is still used by a watch
## Permissions
For being able to access the endpoint, the user needs to have the privilege `cluster:admin:searchguard:signals:destination/delete` .
For being able to access the endpoint, the user needs to have the privilege `cluster:admin:searchguard:signals:account/delete` .
This permission is included in the following [built-in action groups](security_permissions.md):
...
...
@@ -57,7 +61,7 @@ This permission is included in the following [built-in action groups](security_p