Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0ba29c35
Commit
0ba29c35
authored
Feb 04, 2020
by
Thomas Klausner
Committed by
Achilleas Pipinellis
Feb 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve container registry API docs
parent
20c9d7f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
doc/administration/packages/container_registry.md
doc/administration/packages/container_registry.md
+1
-1
doc/api/container_registry.md
doc/api/container_registry.md
+6
-6
No files found.
doc/administration/packages/container_registry.md
View file @
0ba29c35
...
...
@@ -609,7 +609,7 @@ of removing unused tags. Currently, this is exposed using the API, but in the fu
these controls will be migrated to the GitLab interface.
Project maintainers can
[
delete Container Registry tags in bulk
](
../../api/container_registry.md#delete-repository-tags-in-bulk
)
[
delete Container Registry tags in bulk
](
../../api/container_registry.md#delete-re
gistry-re
pository-tags-in-bulk
)
periodically based on their own criteria, however, this alone does not recycle data,
it only unlinks tags from manifests and image blobs. To recycle the Container
Registry data in the whole GitLab instance, you can use the built-in command
...
...
doc/api/container_registry.md
View file @
0ba29c35
...
...
@@ -129,7 +129,7 @@ DELETE /projects/:id/registry/repositories/:repository_id
curl
--request
DELETE
--header
"PRIVATE-TOKEN: <your_access_token>"
"https://gitlab.example.com/api/v4/projects/5/registry/repositories/2"
```
## List repository tags
## List re
gistry re
pository tags
### Within a project
...
...
@@ -165,7 +165,7 @@ Example response:
]
```
## Get details of a repository tag
## Get details of a re
gistry re
pository tag
Get details of a registry repository tag.
...
...
@@ -198,7 +198,7 @@ Example response:
}
```
## Delete a repository tag
## Delete a re
gistry re
pository tag
Delete a registry repository tag.
...
...
@@ -219,9 +219,9 @@ curl --request DELETE --header "PRIVATE-TOKEN: <your_access_token>" "https://git
This action does not delete blobs. In order to delete them and recycle disk space,
[
run the garbage collection
](
https://docs.gitlab.com/omnibus/maintenance/README.html#removing-unused-layers-not-referenced-by-manifests
)
.
## Delete repository tags in bulk
## Delete re
gistry re
pository tags in bulk
Delete repository tags in bulk based on given criteria.
Delete re
gistry re
pository tags in bulk based on given criteria.
```
DELETE /projects/:id/registry/repositories/:repository_id/tags
...
...
@@ -231,7 +231,7 @@ DELETE /projects/:id/registry/repositories/:repository_id/tags
| --------- | ---- | -------- | ----------- |
|
`id`
| integer/string | yes | The ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
owned by the authenticated user. |
|
`repository_id`
| integer | yes | The ID of registry repository. |
|
`name_regex`
| string | yes | The
regex of the name to delete. To delete all tags specify
`.*`
.
|
|
`name_regex`
| string | yes | The
[
re2
](
https://github.com/google/re2/wiki/Syntax
)
regex of the name to delete. To delete all tags specify
`.*`
.
|
|
`keep_n`
| integer | no | The amount of latest tags of given name to keep. |
|
`older_than`
| string | no | Tags to delete that are older than the given time, written in human readable form
`1h`
,
`1d`
,
`1month`
. |
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment