Registry
The registry operations of the v1 API.
Try it: use a key with the least scope; requests go straight from your browser to the API. The key stays in this tab's memory and is gone on reload.
api_keyAuthorizationBearer <alc_ API key>An A-Line.cloud API key, sent as Authorization: Bearer alc_.... Create keys in the dashboard; sessions are not accepted on /v1.
The mirrors and presets
application/json- response
The mirrors with the suggested remotes.
mirrors*array<>The organization's mirrors.
presets*array<>Suggested remotes for new mirrors.
curl 'https://api.a-line.cloud/v1/registry/mirrors' \ -H 'Authorization: Bearer alc_test_EXAMPLE_not_a_real_key'{ "mirrors": [ { "created_at": "2019-08-24T14:15:22Z", "credential_id": "13c40afa-2996-4a0c-b2e9-68fba9462242", "credential_name": "string", "direction": "string", "enabled": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "include_signatures": true, "interval_minutes": 0, "last_bytes": 0, "last_copied": 0, "last_error": "string", "last_run_at": "2019-08-24T14:15:22Z", "last_status": "string", "local_repository": "string", "max_tags": 0, "remote_repository": "string", "remote_url": "string", "repository": "string", "running": true, "sync_requested": true, "tag_filter": [ "string" ], "updated_at": "2019-08-24T14:15:22Z" } ], "presets": [ { "name": "string", "remote_url": "string" } ]}Try it: use a key with the least scope; requests go straight from your browser to the API. The key stays in this tab's memory and is gone on reload.
A pull mirror copies tags of a remote repository into {org}/{local_repository} (normal pushes: events and deploy triggers fire); a push mirror copies that repository's tags to the remote. Tags are never deleted.
api_keyAuthorizationBearer <alc_ API key>An A-Line.cloud API key, sent as Authorization: Bearer alc_.... Create keys in the dashboard; sessions are not accepted on /v1.
Body of a mirror create or update (an update gives the full settings).
application/json- body
Body of a mirror create or update (an update gives the full settings).
credential_id?|One of the organization's registry credentials for the remote host: the login for pulls and pushes. Anonymous when left out (pushes need one).
uuidnulldirection*stringpull (copy from the remote into this registry) or push (copy from this registry to the remote).
enabled?|Whether scheduled and manual runs happen (default true).
nullinclude_signatures?|Also copy cosign signatures, attestations and OCI referrers of the copied images (default false).
nullinterval_minutes?|Minutes between scheduled runs (15 to 10080); manual only when null or left out.
int32nulllocal_repository*stringRepository here, relative to the organization (e.g. production/app): the target of a pull, the source of a push.
max_tags?|Matching tags copied per run, the lexically last ones (1 to 1000, default 100).
int32nullremote_repository*stringRepository at the remote (e.g. team/app; one-segment Docker Hub names get library/).
remote_url*stringRemote registry, https://host[:port] or a bare host (e.g. docker.io, ghcr.io).
tag_filter?array<string>|Tag globs to copy (*, v*, latest); every tag when left out. At most 20.
nullThe new mirror
application/json- response
A registry mirror.
created_at*stringCreation time.
date-timecredential_id?|Credential used against the remote, if any.
uuidcredential_name?|That credential's name.
direction*stringpull or push.
enabled*booleanWhether runs happen.
id*stringIts id.
uuidinclude_signatures*booleanWhether signatures and referrers are copied.
interval_minutes?|Minutes between scheduled runs; null = manual only.
int32last_bytes?|Bytes the last run copied.
int64last_copied?|Tags the last run wrote.
int32last_error?|Why the last run failed or stopped, if it did.
last_run_at?|When the last run finished.
date-timelast_status?|What the last run did.
local_repository*stringRepository here, relative to the organization.
max_tags*integerMatching tags copied per run.
int32remote_repository*stringRepository at the remote.
remote_url*stringRemote registry URL.
repository*stringFull repository path here, {slug}/{local_repository}.
running*booleanWhether a run is under way.
sync_requested*booleanWhether a manual run is waiting to start.
tag_filter*array<string>Tag globs copied.
updated_at*stringLast change.
date-timecurl -X POST 'https://api.a-line.cloud/v1/registry/mirrors' \ -H 'Authorization: Bearer alc_test_EXAMPLE_not_a_real_key' \ -H 'Content-Type: application/json' \ -d '{"direction":"example","local_repository":"example","remote_repository":"example","remote_url":"example"}'{ "created_at": "2019-08-24T14:15:22Z", "credential_id": "13c40afa-2996-4a0c-b2e9-68fba9462242", "credential_name": "string", "direction": "string", "enabled": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "include_signatures": true, "interval_minutes": 0, "last_bytes": 0, "last_copied": 0, "last_error": "string", "last_run_at": "2019-08-24T14:15:22Z", "last_status": "string", "local_repository": "string", "max_tags": 0, "remote_repository": "string", "remote_url": "string", "repository": "string", "running": true, "sync_requested": true, "tag_filter": [ "string" ], "updated_at": "2019-08-24T14:15:22Z"}Try it: use a key with the least scope; requests go straight from your browser to the API. The key stays in this tab's memory and is gone on reload.
api_keyAuthorizationBearer <alc_ API key>An A-Line.cloud API key, sent as Authorization: Bearer alc_.... Create keys in the dashboard; sessions are not accepted on /v1.
id*stringThe mirror UUID
uuidThe mirror
application/json- response
A registry mirror.
created_at*stringCreation time.
date-timecredential_id?|Credential used against the remote, if any.
uuidcredential_name?|That credential's name.
direction*stringpull or push.
enabled*booleanWhether runs happen.
id*stringIts id.
uuidinclude_signatures*booleanWhether signatures and referrers are copied.
interval_minutes?|Minutes between scheduled runs; null = manual only.
int32last_bytes?|Bytes the last run copied.
int64last_copied?|Tags the last run wrote.
int32last_error?|Why the last run failed or stopped, if it did.
last_run_at?|When the last run finished.
date-timelast_status?|What the last run did.
local_repository*stringRepository here, relative to the organization.
max_tags*integerMatching tags copied per run.
int32remote_repository*stringRepository at the remote.
remote_url*stringRemote registry URL.
repository*stringFull repository path here, {slug}/{local_repository}.
running*booleanWhether a run is under way.
sync_requested*booleanWhether a manual run is waiting to start.
tag_filter*array<string>Tag globs copied.
updated_at*stringLast change.
date-timecurl 'https://api.a-line.cloud/v1/registry/mirrors/00000000-0000-4000-8000-000000000001' \ -H 'Authorization: Bearer alc_test_EXAMPLE_not_a_real_key'{ "created_at": "2019-08-24T14:15:22Z", "credential_id": "13c40afa-2996-4a0c-b2e9-68fba9462242", "credential_name": "string", "direction": "string", "enabled": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "include_signatures": true, "interval_minutes": 0, "last_bytes": 0, "last_copied": 0, "last_error": "string", "last_run_at": "2019-08-24T14:15:22Z", "last_status": "string", "local_repository": "string", "max_tags": 0, "remote_repository": "string", "remote_url": "string", "repository": "string", "running": true, "sync_requested": true, "tag_filter": [ "string" ], "updated_at": "2019-08-24T14:15:22Z"}Try it: use a key with the least scope; requests go straight from your browser to the API. The key stays in this tab's memory and is gone on reload.
api_keyAuthorizationBearer <alc_ API key>An A-Line.cloud API key, sent as Authorization: Bearer alc_.... Create keys in the dashboard; sessions are not accepted on /v1.
id*stringThe mirror UUID
uuidBody of a mirror create or update (an update gives the full settings).
application/json- body
Body of a mirror create or update (an update gives the full settings).
credential_id?|One of the organization's registry credentials for the remote host: the login for pulls and pushes. Anonymous when left out (pushes need one).
uuidnulldirection*stringpull (copy from the remote into this registry) or push (copy from this registry to the remote).
enabled?|Whether scheduled and manual runs happen (default true).
nullinclude_signatures?|Also copy cosign signatures, attestations and OCI referrers of the copied images (default false).
nullinterval_minutes?|Minutes between scheduled runs (15 to 10080); manual only when null or left out.
int32nulllocal_repository*stringRepository here, relative to the organization (e.g. production/app): the target of a pull, the source of a push.
max_tags?|Matching tags copied per run, the lexically last ones (1 to 1000, default 100).
int32nullremote_repository*stringRepository at the remote (e.g. team/app; one-segment Docker Hub names get library/).
remote_url*stringRemote registry, https://host[:port] or a bare host (e.g. docker.io, ghcr.io).
tag_filter?array<string>|Tag globs to copy (*, v*, latest); every tag when left out. At most 20.
nullThe changed mirror
application/json- response
A registry mirror.
created_at*stringCreation time.
date-timecredential_id?|Credential used against the remote, if any.
uuidcredential_name?|That credential's name.
direction*stringpull or push.
enabled*booleanWhether runs happen.
id*stringIts id.
uuidinclude_signatures*booleanWhether signatures and referrers are copied.
interval_minutes?|Minutes between scheduled runs; null = manual only.
int32last_bytes?|Bytes the last run copied.
int64last_copied?|Tags the last run wrote.
int32last_error?|Why the last run failed or stopped, if it did.
last_run_at?|When the last run finished.
date-timelast_status?|What the last run did.
local_repository*stringRepository here, relative to the organization.
max_tags*integerMatching tags copied per run.
int32remote_repository*stringRepository at the remote.
remote_url*stringRemote registry URL.
repository*stringFull repository path here, {slug}/{local_repository}.
running*booleanWhether a run is under way.
sync_requested*booleanWhether a manual run is waiting to start.
tag_filter*array<string>Tag globs copied.
updated_at*stringLast change.
date-timecurl -X PUT 'https://api.a-line.cloud/v1/registry/mirrors/00000000-0000-4000-8000-000000000001' \ -H 'Authorization: Bearer alc_test_EXAMPLE_not_a_real_key' \ -H 'Content-Type: application/json' \ -d '{"direction":"example","local_repository":"example","remote_repository":"example","remote_url":"example"}'{ "created_at": "2019-08-24T14:15:22Z", "credential_id": "13c40afa-2996-4a0c-b2e9-68fba9462242", "credential_name": "string", "direction": "string", "enabled": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "include_signatures": true, "interval_minutes": 0, "last_bytes": 0, "last_copied": 0, "last_error": "string", "last_run_at": "2019-08-24T14:15:22Z", "last_status": "string", "local_repository": "string", "max_tags": 0, "remote_repository": "string", "remote_url": "string", "repository": "string", "running": true, "sync_requested": true, "tag_filter": [ "string" ], "updated_at": "2019-08-24T14:15:22Z"}Try it: use a key with the least scope; requests go straight from your browser to the API. The key stays in this tab's memory and is gone on reload.
Tags it copied stay.
api_keyAuthorizationBearer <alc_ API key>An A-Line.cloud API key, sent as Authorization: Bearer alc_.... Create keys in the dashboard; sessions are not accepted on /v1.
id*stringThe mirror UUID
uuidRemoved
application/json- response
Answer of a delete.
deleted*booleanAlways true.
curl -X DELETE 'https://api.a-line.cloud/v1/registry/mirrors/00000000-0000-4000-8000-000000000001' \ -H 'Authorization: Bearer alc_test_EXAMPLE_not_a_real_key'{ "deleted": true}Try it: use a key with the least scope; requests go straight from your browser to the API. The key stays in this tab's memory and is gone on reload.
Run a registry mirror now; the worker starts it within a minute.
api_keyAuthorizationBearer <alc_ API key>An A-Line.cloud API key, sent as Authorization: Bearer alc_.... Create keys in the dashboard; sessions are not accepted on /v1.
id*stringThe mirror UUID
uuidQueued
application/json- response
A registry mirror.
created_at*stringCreation time.
date-timecredential_id?|Credential used against the remote, if any.
uuidcredential_name?|That credential's name.
direction*stringpull or push.
enabled*booleanWhether runs happen.
id*stringIts id.
uuidinclude_signatures*booleanWhether signatures and referrers are copied.
interval_minutes?|Minutes between scheduled runs; null = manual only.
int32last_bytes?|Bytes the last run copied.
int64last_copied?|Tags the last run wrote.
int32last_error?|Why the last run failed or stopped, if it did.
last_run_at?|When the last run finished.
date-timelast_status?|What the last run did.
local_repository*stringRepository here, relative to the organization.
max_tags*integerMatching tags copied per run.
int32remote_repository*stringRepository at the remote.
remote_url*stringRemote registry URL.
repository*stringFull repository path here, {slug}/{local_repository}.
running*booleanWhether a run is under way.
sync_requested*booleanWhether a manual run is waiting to start.
tag_filter*array<string>Tag globs copied.
updated_at*stringLast change.
date-timecurl -X POST 'https://api.a-line.cloud/v1/registry/mirrors/00000000-0000-4000-8000-000000000001/sync' \ -H 'Authorization: Bearer alc_test_EXAMPLE_not_a_real_key'{ "created_at": "2019-08-24T14:15:22Z", "credential_id": "13c40afa-2996-4a0c-b2e9-68fba9462242", "credential_name": "string", "direction": "string", "enabled": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "include_signatures": true, "interval_minutes": 0, "last_bytes": 0, "last_copied": 0, "last_error": "string", "last_run_at": "2019-08-24T14:15:22Z", "last_status": "string", "local_repository": "string", "max_tags": 0, "remote_repository": "string", "remote_url": "string", "repository": "string", "running": true, "sync_requested": true, "tag_filter": [ "string" ], "updated_at": "2019-08-24T14:15:22Z"}Try it: use a key with the least scope; requests go straight from your browser to the API. The key stays in this tab's memory and is gone on reload.
Test a registry mirror: ask the remote's /v2/ with the mirror's login.
api_keyAuthorizationBearer <alc_ API key>An A-Line.cloud API key, sent as Authorization: Bearer alc_.... Create keys in the dashboard; sessions are not accepted on /v1.
id*stringThe mirror UUID
uuidWhat the remote said
application/json- response
Result of a rule test.
message*stringWhat happened, for people.
ok*booleanWhether the upstream answered and accepted the login (or anonymous access).
status?|The upstream's HTTP status on /v2/, when it answered.
uint160 <= value <= 65535curl -X POST 'https://api.a-line.cloud/v1/registry/mirrors/00000000-0000-4000-8000-000000000001/test' \ -H 'Authorization: Bearer alc_test_EXAMPLE_not_a_real_key'{ "message": "string", "ok": true, "status": 0}Try it: use a key with the least scope; requests go straight from your browser to the API. The key stays in this tab's memory and is gone on reload.
api_keyAuthorizationBearer <alc_ API key>An A-Line.cloud API key, sent as Authorization: Bearer alc_.... Create keys in the dashboard; sessions are not accepted on /v1.
The rules and presets
application/json- response
The rules with the suggested upstreams.
presets*array<>Suggested upstreams for new rules.
rules*array<>The organization's rules, by alias.
curl 'https://api.a-line.cloud/v1/registry/pull-caches' \ -H 'Authorization: Bearer alc_test_EXAMPLE_not_a_real_key'{ "presets": [ { "alias": "string", "upstream_url": "string" } ], "rules": [ { "alias": "string", "created_at": "2019-08-24T14:15:22Z", "credential_id": "13c40afa-2996-4a0c-b2e9-68fba9462242", "credential_name": "string", "enabled": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "refresh_minutes": 0, "repository_prefix": "string", "updated_at": "2019-08-24T14:15:22Z", "upstream_url": "string" } ]}Try it: use a key with the least scope; requests go straight from your browser to the API. The key stays in this tab's memory and is gone on reload.
Pulling {org}/pull_cache/{alias}/{image}:{tag} then fills the cache from the upstream on demand.
api_keyAuthorizationBearer <alc_ API key>An A-Line.cloud API key, sent as Authorization: Bearer alc_.... Create keys in the dashboard; sessions are not accepted on /v1.
Body of a rule create.
application/json- body
Body of a rule create.
alias*stringPath segment after pull_cache/ (e.g. hub): lowercase letters and digits in hyphen-joined words, at most 32 characters. Fixed once created.
credential_id?|One of the organization's pull credentials for the upstream host; anonymous when left out.
uuidnullenabled?|Whether pulls may fill the cache (default true).
nullrefresh_minutes?|Minutes a resolved tag is trusted before the upstream is asked again (15 to 10080, default 360).
int32nullupstream_url*stringUpstream registry, https://host[:port] or a bare host (e.g. docker.io, ghcr.io).
The new rule
application/json- response
A pull-through cache rule.
alias*stringPath segment after pull_cache/.
created_at*stringCreation time.
date-timecredential_id?|Pull credential used against the upstream, if any.
uuidcredential_name?|That credential's name.
enabled*booleanWhether pulls may fill the cache.
id*stringIts id.
uuidrefresh_minutes*integerMinutes a resolved tag is trusted.
int32repository_prefix*stringRepository prefix to pull through, {slug}/pull_cache/{alias}.
updated_at*stringLast change.
date-timeupstream_url*stringUpstream registry URL.
curl -X POST 'https://api.a-line.cloud/v1/registry/pull-caches' \ -H 'Authorization: Bearer alc_test_EXAMPLE_not_a_real_key' \ -H 'Content-Type: application/json' \ -d '{"alias":"example","upstream_url":"example"}'{ "alias": "string", "created_at": "2019-08-24T14:15:22Z", "credential_id": "13c40afa-2996-4a0c-b2e9-68fba9462242", "credential_name": "string", "enabled": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "refresh_minutes": 0, "repository_prefix": "string", "updated_at": "2019-08-24T14:15:22Z", "upstream_url": "string"}Try it: use a key with the least scope; requests go straight from your browser to the API. The key stays in this tab's memory and is gone on reload.
api_keyAuthorizationBearer <alc_ API key>An A-Line.cloud API key, sent as Authorization: Bearer alc_.... Create keys in the dashboard; sessions are not accepted on /v1.
id*stringThe pull-through cache UUID
uuidThe rule
application/json- response
A pull-through cache rule.
alias*stringPath segment after pull_cache/.
created_at*stringCreation time.
date-timecredential_id?|Pull credential used against the upstream, if any.
uuidcredential_name?|That credential's name.
enabled*booleanWhether pulls may fill the cache.
id*stringIts id.
uuidrefresh_minutes*integerMinutes a resolved tag is trusted.
int32repository_prefix*stringRepository prefix to pull through, {slug}/pull_cache/{alias}.
updated_at*stringLast change.
date-timeupstream_url*stringUpstream registry URL.
curl 'https://api.a-line.cloud/v1/registry/pull-caches/00000000-0000-4000-8000-000000000001' \ -H 'Authorization: Bearer alc_test_EXAMPLE_not_a_real_key'{ "alias": "string", "created_at": "2019-08-24T14:15:22Z", "credential_id": "13c40afa-2996-4a0c-b2e9-68fba9462242", "credential_name": "string", "enabled": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "refresh_minutes": 0, "repository_prefix": "string", "updated_at": "2019-08-24T14:15:22Z", "upstream_url": "string"}Try it: use a key with the least scope; requests go straight from your browser to the API. The key stays in this tab's memory and is gone on reload.
Replace a pull-through cache's upstream, credential, refresh interval and switch. The alias stays.
api_keyAuthorizationBearer <alc_ API key>An A-Line.cloud API key, sent as Authorization: Bearer alc_.... Create keys in the dashboard; sessions are not accepted on /v1.
id*stringThe pull-through cache UUID
uuidBody of a rule update: the full new settings (the alias stays).
application/json- body
Body of a rule update: the full new settings (the alias stays).
credential_id?|Pull credential for the upstream host; anonymous when null or left out.
uuidnullenabled*booleanWhether pulls may fill the cache.
refresh_minutes*integerMinutes a resolved tag is trusted (15 to 10080).
int32upstream_url*stringUpstream registry, https://host[:port] or a bare host.
The changed rule
application/json- response
A pull-through cache rule.
alias*stringPath segment after pull_cache/.
created_at*stringCreation time.
date-timecredential_id?|Pull credential used against the upstream, if any.
uuidcredential_name?|That credential's name.
enabled*booleanWhether pulls may fill the cache.
id*stringIts id.
uuidrefresh_minutes*integerMinutes a resolved tag is trusted.
int32repository_prefix*stringRepository prefix to pull through, {slug}/pull_cache/{alias}.
updated_at*stringLast change.
date-timeupstream_url*stringUpstream registry URL.
curl -X PUT 'https://api.a-line.cloud/v1/registry/pull-caches/00000000-0000-4000-8000-000000000001' \ -H 'Authorization: Bearer alc_test_EXAMPLE_not_a_real_key' \ -H 'Content-Type: application/json' \ -d '{"enabled":false,"refresh_minutes":1,"upstream_url":"example"}'{ "alias": "string", "created_at": "2019-08-24T14:15:22Z", "credential_id": "13c40afa-2996-4a0c-b2e9-68fba9462242", "credential_name": "string", "enabled": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "refresh_minutes": 0, "repository_prefix": "string", "updated_at": "2019-08-24T14:15:22Z", "upstream_url": "string"}Try it: use a key with the least scope; requests go straight from your browser to the API. The key stays in this tab's memory and is gone on reload.
Cached images stay until retention drops them.
api_keyAuthorizationBearer <alc_ API key>An A-Line.cloud API key, sent as Authorization: Bearer alc_.... Create keys in the dashboard; sessions are not accepted on /v1.
id*stringThe pull-through cache UUID
uuidRemoved
application/json- response
Answer of a delete.
deleted*booleanAlways true.
curl -X DELETE 'https://api.a-line.cloud/v1/registry/pull-caches/00000000-0000-4000-8000-000000000001' \ -H 'Authorization: Bearer alc_test_EXAMPLE_not_a_real_key'{ "deleted": true}Try it: use a key with the least scope; requests go straight from your browser to the API. The key stays in this tab's memory and is gone on reload.
Test a pull-through cache: ask the upstream's /v2/ with the rule's login.
api_keyAuthorizationBearer <alc_ API key>An A-Line.cloud API key, sent as Authorization: Bearer alc_.... Create keys in the dashboard; sessions are not accepted on /v1.
id*stringThe pull-through cache UUID
uuidWhat the upstream said
application/json- response
Result of a rule test.
message*stringWhat happened, for people.
ok*booleanWhether the upstream answered and accepted the login (or anonymous access).
status?|The upstream's HTTP status on /v2/, when it answered.
uint160 <= value <= 65535curl -X POST 'https://api.a-line.cloud/v1/registry/pull-caches/00000000-0000-4000-8000-000000000001/test' \ -H 'Authorization: Bearer alc_test_EXAMPLE_not_a_real_key'{ "message": "string", "ok": true, "status": 0}