diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-27 18:09:34 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-27 18:09:34 +0300 |
commit | f459f810d53dd453d3fc39df2dd62f01629d99e4 (patch) | |
tree | 1ecd155b532808014da10d0c04357292f06700a9 /doc/api/container_registry.md | |
parent | 71329edee6b7c2af838e07189dfeef8a41cd66ec (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/container_registry.md')
-rw-r--r-- | doc/api/container_registry.md | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/doc/api/container_registry.md b/doc/api/container_registry.md index 901b0b93529..2af725ecdad 100644 --- a/doc/api/container_registry.md +++ b/doc/api/container_registry.md @@ -448,6 +448,17 @@ $ curl --request GET --user "${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD}" \ ### Delete image tags by reference +> Endpoint `v2/<name>/manifests/<tag>` [introduced](https://gitlab.com/gitlab-org/container-registry/-/issues/1091) and endpoint `v2/<name>/tags/reference/<tag>` [deprecated](https://gitlab.com/gitlab-org/container-registry/-/issues/1094) in GitLab 16.4. + +<!--- start_remove The following content will be removed on remove_date: '2024-08-15' --> + +WARNING: +Endpoint `v2/<name>/tags/reference/<tag>` [deprecated](https://gitlab.com/gitlab-org/container-registry/-/issues/1095) +in GitLab 16.4 and is planned for removal in 17.0. Use [`v2/<name>/manifests/<tag>`](https://gitlab.com/gitlab-org/container-registry/-/blob/master/docs/spec/docker/v2/api.md#delete-manifest) instead. +This change is a breaking change. + +<!--- end_remove --> + ```plaintext DELETE http(s)://${CI_REGISTRY}/v2/${CI_REGISTRY_IMAGE}/tags/reference/${CI_COMMIT_SHORT_SHA} ``` @@ -458,7 +469,7 @@ The `tag_delete` [Container-Registry-Feature](https://gitlab.com/gitlab-org/cont ```shell $ curl --request DELETE --header "Authorization: Bearer <token_from_above>" \ --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \ - "https://gitlab.example.com:5050/v2/${CI_REGISTRY_IMAGE}/tags/reference/${CI_COMMIT_SHORT_SHA}" + "https://gitlab.example.com:5050/v2/${CI_REGISTRY_IMAGE}/manifests/${CI_COMMIT_SHORT_SHA}" ``` ### Listing all container repositories |