v8

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2025-10-165266542.4 MB
DigitalOcean-public.v2-new_Monitoring

Create Logging Destination

To create a new destination, send a POST request to /v2/monitoring/sinks/destinations.

post/v2/monitoring/sinks/destinations

Request body

namestring

destination name

type'opensearch_dbaas' | 'opensearch_ext' required

The destination type. opensearch_dbaas for a DigitalOcean managed OpenSearch cluster or opensearch_ext for an externally managed one.

Example request

{
  "name": "managed_opensearch_cluster",
  "config": {
    "credentials": {
      "username": "username",
      "password": "password"
    },
    "endpoint": "example.com",
    "cluster_uuid": "85148069-7e35-4999-80bd-6fa1637ca385",
    "cluster_name": "managed_dbaas_cluster",
    "index_name": "logs",
    "retention_days": 14
  }
}

Response

The response is a JSON object with a destination key.

Example response

{
  "destination": {
    "id": "01f30bfa-319a-4769-ba95-9d43971fb514",
    "name": "managed_opensearch_cluster",
    "type": "opensearch_dbaas",
    "config": {
      "id": "41078d41-165c-4cff-9f0a-19536e3e3d49",
      "endpoint": "example.com",
      "cluster_uuid": "85148069-7e35-4999-80bd-6fa1637ca385",
      "cluster_name": "managed_dbaas_cluster",
      "index_name": "logs",
      "retention_days": 14
    }
  }
}