Skip to main content

active_garbage_collection

Creates, updates, deletes, gets or lists an active_garbage_collection resource.

Overview

Nameactive_garbage_collection
TypeResource
Iddigitalocean.container_registry.active_garbage_collection

Fields

The following fields are returned by SELECT queries:

The response will be a JSON object with a key of garbage_collection. This will be a json object with attributes representing the currently-active garbage collection.

NameDatatypeDescription
registry_namestringThe name of the container registry. (example: example)
blobs_deletedintegerThe number of blobs deleted as a result of this garbage collection.
created_atstring (date-time)The time the garbage collection was created. (example: 2020-10-30T21:03:24Z)
freed_bytesintegerThe number of bytes freed as a result of this garbage collection.
statusstringThe current status of this garbage collection. (example: requested)
updated_atstring (date-time)The time the garbage collection was last updated. (example: 2020-10-30T21:03:44Z)
uuidstringA string specifying the UUID of the garbage collection. (example: eff0feee-49c7-4e8f-ba5c-a320c109c8a8)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
registries_get_garbage_collectionselectregistry_nameTo get information about the currently-active garbage collection for a registry, send a GET request to /v2/registry/$REGISTRY_NAME/garbage-collection.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
registry_namestringThe name of a container registry. (example: example)

SELECT examples

To get information about the currently-active garbage collection for a registry, send a GET request to /v2/registry/$REGISTRY_NAME/garbage-collection.

SELECT
registry_name,
blobs_deleted,
created_at,
freed_bytes,
status,
updated_at,
uuid
FROM digitalocean.container_registry.active_garbage_collection
WHERE registry_name = '{{ registry_name }}' -- required;