---
title: "PUT /dbaas-external-endpoint/{source-service-name}/attach"
method: PUT
path: "/dbaas-external-endpoint/{source-service-name}/attach"
tags: ["dbaas"]
---

# PUT /dbaas-external-endpoint/{source-service-name}/attach

`PUT /dbaas-external-endpoint/{source-service-name}/attach`

## Request

- Base URL: `https://api-ch-gva-2.exoscale.com/v2`
- URL: `https://api-ch-gva-2.exoscale.com/v2/dbaas-external-endpoint/{source-service-name}/attach`
- Auth: none declared
- TypeScript: <https://skmtc.dev/exoscale/apis/exoscale-api/docs/dbaas-external-endpoint/:source-service-name/attach/put.ts> (a function with typed inputs; its response is checked against the schema)

[BETA] Create a new DBaaS connection between a DBaaS service and an external service

## Path parameters

- `source-service-name` string, required

## Request body

- object
  - `dest-endpoint-id` string, uuid, required: External endpoint id
  - `type` 'prometheus' | 'opensearch' | 'rsyslog' | 'datadog' | 'elasticsearch', required

## Response `200`

200

- Operation: Operation
  - `id` string, uuid: Operation ID
  - `reason` 'incorrect' | 'unknown' | 'unavailable' | 'forbidden' | 'busy' | 'fault' | 'partial' | 'not-found' | 'interrupted' | 'unsupported' | 'conflict': Operation failure reason
  - `reference` object: Related resource reference
    - `id` string, uuid: Reference ID
    - `link` string: Link to the referenced resource
    - `command` string: Command name
  - `message` string: Operation message
  - `state` 'failure' | 'pending' | 'success' | 'timeout': Operation status

## Changes

- **2024-09-18** `eae1143f1c63`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/exoscale/apis/exoscale-api/changes/dbaas-external-endpoint/:source-service-name/attach/put.md)

---

[API](https://skmtc.dev/exoscale/apis/exoscale-api.md) - [All operations](https://skmtc.dev/exoscale/apis/exoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/exoscale/apis/exoscale-api/revisions/63da6f74c845?raw)
