List registry repositories by size
import requests
url = "https://platform.ankra.app/api/v1/org/registry-storage/repositories"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/registry-storage/repositories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/registry-storage/repositories \
--header 'Authorization: Bearer <token>'{
"status": "complete",
"repositories": [
{
"name": "<string>",
"project": "<string>",
"artifact_count": 123,
"size_bytes": 123,
"last_pushed_at": "<string>",
"truncated": true,
"unreadable": true,
"retention_rule_id": "<string>"
}
],
"sizes_are_approximate": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Credentials
List registry repositories by size
List every repository of the organisation’s registry projects, largest first, with its image count, approximate size and last push, and the retention rule that governs it. CI build images live under ankra-ci/. Sizes count layers shared between images once per image, so they rank repositories but do not add up to the storage figure. A browser session twin is mounted at the same path without the /api/v1 prefix (cookie authentication).
GET
/
api
/
v1
/
org
/
registry-storage
/
repositories
List registry repositories by size
import requests
url = "https://platform.ankra.app/api/v1/org/registry-storage/repositories"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/registry-storage/repositories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/registry-storage/repositories \
--header 'Authorization: Bearer <token>'{
"status": "complete",
"repositories": [
{
"name": "<string>",
"project": "<string>",
"artifact_count": 123,
"size_bytes": 123,
"last_pushed_at": "<string>",
"truncated": true,
"unreadable": true,
"retention_rule_id": "<string>"
}
],
"sizes_are_approximate": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.