How to do we retrieve the destination id of the already created destinations via api?

How to do we retrieve the destination id of the already created destinations via api

currently only these are supported?

Hi,
I’ve found this workaround that can list all of the destinations available with their IDs:

Do a POST call to .opendistro-alerting-config/_search endpoint with the following query:
{ ‘size’: 10000, ‘query’: { ‘bool’: { ‘must’: { ‘exists’: { ‘field’: ‘destination’ } } } } }

1 Like

Hello,

Thanks. It worked