active_garbage_collection
Creates, updates, deletes, gets or lists an active_garbage_collection
resource.
Overview
Name | active_garbage_collection |
Type | Resource |
Id | digitalocean.container_registry.active_garbage_collection |
Fields
The following fields are returned by SELECT
queries:
- registries_get_garbage_collection
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.
Name | Datatype | Description |
---|---|---|
registry_name | string | The name of the container registry. (example: example) |
blobs_deleted | integer | The number of blobs deleted as a result of this garbage collection. |
created_at | string (date-time) | The time the garbage collection was created. (example: 2020-10-30T21:03:24Z) |
freed_bytes | integer | The number of bytes freed as a result of this garbage collection. |
status | string | The current status of this garbage collection. (example: requested) |
updated_at | string (date-time) | The time the garbage collection was last updated. (example: 2020-10-30T21:03:44Z) |
uuid | string | A string specifying the UUID of the garbage collection. (example: eff0feee-49c7-4e8f-ba5c-a320c109c8a8) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
registries_get_garbage_collection | select | registry_name | To 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.
Name | Datatype | Description |
---|---|---|
registry_name | string | The name of a container registry. (example: example) |
SELECT
examples
- registries_get_garbage_collection
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;