operationId: monitoring_create_destination
summary: Create Logging Destination
description: To create a new destination, send a POST request to `/v2/monitoring/sinks/destinations`.
tags:
- Monitoring
requestBody:
required: true
content:
application/json:
schema:
$ref: 'models/destination_request.yml'
examples:
Managed OpenSearch Cluster:
value:
name: managed_opensearch_cluster
type: opensearch_dbaas
config:
endpoint: db-opensearch-nyc3-123456-do-user-123456-0.g.db.ondigitalocean.com
cluster_uuid: 85148069-7e35-4999-80bd-6fa1637ca385
cluster_name: managed_dbaas_cluster
index_name: logs
retention_days: 14
External OpenSearch Cluster:
value:
name: external_opensearch
type: opensearch_ext
config:
endpoint: example.com
credentials:
username: username
password: password
index_name: logs
retention_days: 14
responses:
'200':
$ref: 'responses/destination.yml'
'401':
$ref: '../../shared/responses/unauthorized.yml'
'404':
$ref: '../../shared/responses/not_found.yml'
'429':
$ref: '../../shared/responses/too_many_requests.yml'
'500':
$ref: '../../shared/responses/server_error.yml'
default:
$ref: '../../shared/responses/unexpected_error.yml'
x-codeSamples:
- $ref: 'examples/curl/monitoring_create_destination.yml'
security:
- bearer_auth:
- 'monitoring:create'