diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-03-18 23:02:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-03-18 23:02:30 +0300 |
commit | 41fe97390ceddf945f3d967b8fdb3de4c66b7dea (patch) | |
tree | 9c8d89a8624828992f06d892cd2f43818ff5dcc8 /doc/api/container_registry.md | |
parent | 0804d2dc31052fb45a1efecedc8e06ce9bc32862 (diff) |
Add latest changes from gitlab-org/gitlab@14-9-stable-eev14.9.0-rc42
Diffstat (limited to 'doc/api/container_registry.md')
-rw-r--r-- | doc/api/container_registry.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/api/container_registry.md b/doc/api/container_registry.md index b61ec34b882..eb5a124c40c 100644 --- a/doc/api/container_registry.md +++ b/doc/api/container_registry.md @@ -210,10 +210,11 @@ GET /registry/repositories/:id | `id` | integer/string | yes | The ID of the registry repository accessible by the authenticated user. | | `tags` | boolean | no | If the parameter is included as `true`, the response includes an array of `"tags"`. | | `tags_count` | boolean | no | If the parameter is included as `true`, the response includes `"tags_count"`. | +| `size` | boolean | no | If the parameter is included as `true`, the response includes `"size"`. This is the deduplicated size of all images within the repository. Deduplication eliminates extra copies of identical data. For example, if you upload the same image twice, the Container Registry stores only one copy. This field is only available on GitLab.com for repositories created after `2021-11-04`. | ```shell curl --header "PRIVATE-TOKEN: <your_access_token>" \ - "https://gitlab.example.com/api/v4/registry/repositories/2?tags=true&tags_count=true" + "https://gitlab.example.com/api/v4/registry/repositories/2?tags=true&tags_count=true&size=true" ``` Example response: @@ -234,7 +235,8 @@ Example response: "path": "group/project:0.0.1", "location": "gitlab.example.com:5000/group/project:0.0.1" } - ] + ], + "size": 2818413 } ``` |