dots.v2.monitoring.sinks.post()

Generated on 13 Nov 2026 from DoTs version v1.24.0

Usage

client.v2.monitoring.sinks.post(body: SinksPostRequestBody, requestConfiguration?: RequestConfiguration<object>): Promise<void>

Description

To create a new sink, send a POST request to /v2/monitoring/sinks. Forwards logs from the resources identified in resources to the specified pre-existing destination.

Parameters

destinationUuid string optional

Example: 9df2b7e9-3fb2-4577-b60a-e9c0d53f9a99

A unique identifier for an already-existing destination.

resources array of objects optional

List of resources identified by their URNs.

Show child properties
urn string required

Example: do:kubernetes:f453aa14-646e-4cf8-8c62-75a19fb24ec2

The uniform resource name (URN) for the resource in the format do:resource_type:resource_id.

name string optional

Example: managed_kubernetes_cluster

resource name

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

await client.v2.monitoring.sinks.post({
    destinationUuid: "9df2b7e9-3fb2-4577-b60a-e9c0d53f9a99",
    resources: [
        {
            urn: "do:kubernetes:f453aa14-646e-4cf8-8c62-75a19fb24ec2",
            name: "managed_kubernetes_cluster",
        },
    ],
});

More Information

See /v2/monitoring/sinks in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.