Verify an integrated registry connection
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>"
}
]
}Credentials
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).
POST
/
api
/
v1
/
org
/
registry-connections
/
verify
Verify an integrated registry connection
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
Body
application/json
Response
Successful Response