pydo.kubernetes.add_registries()

Generated on 7 Jul 2026 from pydo version v0.39.0

Usage

client.kubernetes.add_registries(
    body={
        "cluster_uuids": [...],
        "registries": [...],
    },
)
Returns NoneRaises HttpResponseError

Description

To integrate the container registries with Kubernetes clusters, send a POST request to /v2/kubernetes/registries.

Parameters

cluster_uuids array of strings optional

Example: ['bd5f5959-5e1e-4205-a714-a914373942af', '50c2f44c-011d-493e-aee5-361a4a0d1844']

An array containing the UUIDs of Kubernetes clusters.

registries array of strings optional

Example: ['registry-a', 'registry-b']

An array containing the registry names.

Request Sample

Show Request Sample
import os
from pydo import Client

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

req = {
  "cluster_uuids": [
    "bd5f5959-5e1e-4205-a714-a914373942af",
    "50c2f44c-011d-493e-aee5-361a4a0d1844"
  ],
  "registries": [
    "registry-a",
    "registry-b"
  ]
}

resp = client.kubernetes.add_registries(body=req)

More Information

See /v2/kubernetes/registries 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.