dots.v2.registry.byRegistry_name().garbageCollections.get()

Generated on 13 Nov 2026 from DoTs version v1.24.0

deprecated

Usage

client.v2.registry.byRegistry_name(registry_name).garbageCollections.get(requestConfiguration?: RequestConfiguration<GarbageCollectionsRequestBuilderGetQueryParameters>): Promise<undefined | GarbageCollectionsGetResponse>

Description

Note: This endpoint is deprecated. Please use the /v2/registries endpoint instead.

To get information about past garbage collections for a registry, send a GET request to /v2/registry/{registry_name}/garbage-collections.

Parameters

Path Parameters

registry_name string required

Example: example

The name of a container registry.

Query Parameters

perPage integer optional

Example: 2

Number of items returned per page

Default: 20

Min: 1

Max: 200

page integer optional

Example: 1

Which 'page' of paginated results to return.

Default: 1

Min: 1

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);

const response = await client.v2.registry
    .byRegistry_name("example").garbageCollections.get();

Response Example

Show Response Example
{
  "garbage_collections": [
    {
      "uuid": "eff0feee-49c7-4e8f-ba5c-a320c109c8a8",
      "registry_name": "example",
      "status": "requested",
      "created_at": "2020-10-30T21:03:24.000Z",
      "updated_at": "2020-10-30T21:03:44.000Z",
      "blobs_deleted": 42,
      "freed_bytes": 667
    }
  ],
  "meta": {
    "total": 1
  }
}

More Information

See /v2/registry/{registry_name}/garbage-collections 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.