import requests
url = "https://platform.ankra.app/api/v1/org/registry-connections/verify"
payload = {
"admin_credential_name": "<string>",
"registry": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({admin_credential_name: '<string>', registry: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/registry-connections/verify', 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-connections/verify \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"admin_credential_name": "<string>",
"registry": "<string>"
}
'{
"detail": "<string>",
"host": "<string>",
"ok": true,
"project_count": 123,
"provider": "harbor"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Verify an integrated registry connection
Check that an admin credential can manage robots on an integrated registry entry, before a robot is made there: Ankra acts as the credential and lists the projects (Harbor) or Docker repositories (Google Artifact Registry) robots can be bound to. Nothing is minted. A connection that fails - the credential refused, the registry unreachable, a credential that cannot be used there, or a registry Ankra cannot make robots on - answers 200 with ok false and a sentence saying why. Requires credentials.write and credentials.reveal. A browser session twin is mounted at the same path without the /api/v1 prefix (cookie authentication, CSRF-guarded).
import requests
url = "https://platform.ankra.app/api/v1/org/registry-connections/verify"
payload = {
"admin_credential_name": "<string>",
"registry": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({admin_credential_name: '<string>', registry: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/registry-connections/verify', 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-connections/verify \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"admin_credential_name": "<string>",
"registry": "<string>"
}
'{
"detail": "<string>",
"host": "<string>",
"ok": true,
"project_count": 123,
"provider": "harbor"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Response
Successful Response
A sentence saying what Ankra reached and saw, or why it could not.
True when the admin credential could list what robots can be bound to on the registry.
How many projects (Harbor) or Docker repositories (Google Artifact Registry) the credential sees; null when nothing could be listed.
harbor, google_artifact_registry, oci