import requests
url = "https://platform.ankra.app/api/v1/org/registry-storage"
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', 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 \
--header 'Authorization: Bearer <token>'{
"organisation_id": "<string>",
"limit_bytes": 123,
"default_limit_bytes": 123,
"source": "default",
"reason": "<string>",
"updated_by": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"used_bytes": 123,
"usage_status": "complete",
"projects": [
{
"name": "<string>",
"project": "<string>",
"limit_bytes": 123,
"used_bytes": 123,
"status": "ok"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Get registry storage
Read the organisation’s registry storage: the storage limit each of its registry projects carries, whether that limit is the platform default or one set for the organisation (and why), and how much each project holds. usage_status says whether the figures are complete, a lower bound (partial), unknown (the registry could not be read; used_bytes is then absent, never zero) or not_provisioned (no registry project yet). A browser session twin is mounted at the same path without the /api/v1 prefix (cookie authentication).
import requests
url = "https://platform.ankra.app/api/v1/org/registry-storage"
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', 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 \
--header 'Authorization: Bearer <token>'{
"organisation_id": "<string>",
"limit_bytes": 123,
"default_limit_bytes": 123,
"source": "default",
"reason": "<string>",
"updated_by": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"used_bytes": 123,
"usage_status": "complete",
"projects": [
{
"name": "<string>",
"project": "<string>",
"limit_bytes": 123,
"used_bytes": 123,
"status": "ok"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Successful Response
The storage limit in force for each of the organisation's registry projects, in bytes; -1 is no limit.
The platform default an organisation with no limit of its own carries.
default, organisation What the organisation's projects hold; absent when no project could be read, a lower bound when usage_status is partial.
complete, partial, unknown, not_provisioned Show child attributes
Show child attributes