List AWS Ubuntu images
import requests
url = "https://platform.ankra.app/org/clusters/aws/images"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://platform.ankra.app/org/clusters/aws/images', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/clusters/aws/images \
--cookie ankra_session={
"ubuntu_series": [
"<string>"
],
"architectures": [
"<string>"
],
"default_series": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}AWS Clusters
List AWS Ubuntu images
Browser session authentication; RBAC permission clusters.read. Lists the Ubuntu series whose Canonical AMI parameter resolves in the region and the architectures offered (amd64 only until the image catalogue is arm64-audited). Answers 503 rather than an empty list when no series could be resolved. Answers 404 while the organisation’s aws_provider feature flag is off.
GET
/
org
/
clusters
/
aws
/
images
List AWS Ubuntu images
import requests
url = "https://platform.ankra.app/org/clusters/aws/images"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://platform.ankra.app/org/clusters/aws/images', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/clusters/aws/images \
--cookie ankra_session={
"ubuntu_series": [
"<string>"
],
"architectures": [
"<string>"
],
"default_series": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}Authorizations
Browser session. Mutations also require X-Ankra-CSRF.
Query Parameters
The organisation's AWS credential (a keys credential, or a role onboarded with the provisioning or self_managed scope).
AWS region slug, e.g. eu-west-1.