Run registry retention now
import requests
url = "https://platform.ankra.app/api/v1/org/registry-storage/retention/run"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/registry-storage/retention/run', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/registry-storage/retention/run \
--header 'Authorization: Bearer <token>'{
"projects": [
{
"project": "<string>",
"started": true,
"reason": "<string>"
}
],
"space_freed_at": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Credentials
Run registry retention now
Start the retention of every registry project of the organisation now instead of at its daily time. Deleted images stop counting against storage at the registry’s next garbage collection. A browser session twin is mounted at the same path without the /api/v1 prefix (cookie authentication).
POST
/
api
/
v1
/
org
/
registry-storage
/
retention
/
run
Run registry retention now
import requests
url = "https://platform.ankra.app/api/v1/org/registry-storage/retention/run"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/registry-storage/retention/run', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/registry-storage/retention/run \
--header 'Authorization: Bearer <token>'{
"projects": [
{
"project": "<string>",
"started": true,
"reason": "<string>"
}
],
"space_freed_at": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.