pydo.monitoring.create_sink()

Generated on 7 Jul 2026 from pydo version v0.39.0

Usage

client.monitoring.create_sink(
    body={
        "destination_uuid": "9df2b7e9-3fb2-4577-b60a-e9c0d53f9a99",
        "resources": [...],
    },
)
Returns NoneRaises HttpResponseError

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

destination_uuid 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 os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

req = {
  "destination_uuid": "9df2b7e9-3fb2-4577-b60a-e9c0d53f9a99",
  "resources": [
    {
      "urn": "do:kubernetes:f453aa14-646e-4cf8-8c62-75a19fb24ec2",
      "name": "managed_kubernetes_cluster"
    }
  ]
}

resp = client.monitoring.create_sink(body=req)

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.