Endpoint | Method | Description |
---|---|---|
/udr/v1api/garbagecollection | POST | Performs garbage collection. |
The registry is set offline in order to perform garbage collection. While garbage collection runs, images cannot be pushed/pulled and users are notified that the registry is offline when attempting to push/pull images.
Basic Authorization header required. The specified user must have administrator privileges.
Argument | Type | Description |
---|---|---|
(none) |
A JSON object is returned. If an error occurs, the "error" field will contain a descriptive error message (see Standard API Response).
Field | Type | Description |
---|---|---|
data | Boolean | Contains true indicating that garbage collection has completed. |
curl -u username:usertoken -d "" https://registry.yoursite.com/udr/v1api/garbagecollection Response: {"error":null,"data":true}
Last Updated 08/17/2020 - (email)
RegistryUI.com © 2023 - Softel vdm, Inc.