List registry providers
import requests
url = "https://platform.ankra.app/api/v1/org/registry-providers"
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-providers', 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-providers \
--header 'Authorization: Bearer <token>'{
"providers": [
{
"admin_username_hint": "<string>",
"custom_permissions": true,
"expiry": true,
"label": "<string>",
"permissions": [
{
"description": "<string>",
"label": "<string>",
"permission": "<string>"
}
],
"provider": "harbor",
"robots": true
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Credentials
List registry providers
List the registry providers robots can be made on and what each supports: Harbor (the Ankra registry and any integrated Harbor), Google Artifact Registry (pkg.dev and gcr.io hosts), and any other OCI registry, on which no robot can be made. Each states whether its robots can expire, whether custom permissions can be picked, the permission catalogue a create picks from, and what the admin credential’s username looks like. Requires credentials.read. A browser session twin is mounted at the same path without the /api/v1 prefix (cookie authentication).
GET
/
api
/
v1
/
org
/
registry-providers
List registry providers
import requests
url = "https://platform.ankra.app/api/v1/org/registry-providers"
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-providers', 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-providers \
--header 'Authorization: Bearer <token>'{
"providers": [
{
"admin_username_hint": "<string>",
"custom_permissions": true,
"expiry": true,
"label": "<string>",
"permissions": [
{
"description": "<string>",
"label": "<string>",
"permission": "<string>"
}
],
"provider": "harbor",
"robots": true
}
]
}{
"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
Show child attributes
Show child attributes