List AWS instance types
import requests
url = "https://platform.ankra.app/org/clusters/aws/instance-types"
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/instance-types', 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/instance-types \
--cookie ankra_session={
"instance_types": [
{
"name": "<string>",
"vcpus": 123,
"memory_gib": 123,
"architecture": "<string>",
"category": "general",
"hourly_price_usd": 123,
"monthly_price_usd": 123,
"current_generation": true
}
],
"pricing_complete": true,
"incomplete_reasons": [
"<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"
}AWS Clusters
List AWS instance types
Browser session authentication; RBAC permission clusters.read. Lists the amd64 instance types offered in the region with on-demand prices; a nil price is unknown, never free, and pricing_complete says whether every type was priced. Answers 404 while the organisation’s aws_provider feature flag is off.
GET
/
org
/
clusters
/
aws
/
instance-types
List AWS instance types
import requests
url = "https://platform.ankra.app/org/clusters/aws/instance-types"
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/instance-types', 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/instance-types \
--cookie ankra_session={
"instance_types": [
{
"name": "<string>",
"vcpus": 123,
"memory_gib": 123,
"architecture": "<string>",
"category": "general",
"hourly_price_usd": 123,
"monthly_price_usd": 123,
"current_generation": true
}
],
"pricing_complete": true,
"incomplete_reasons": [
"<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"
}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.