List AWS instance types
import requests
url = "https://platform.ankra.app/api/v1/clusters/aws/instance-types"
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/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/api/v1/clusters/aws/instance-types \
--header 'Authorization: Bearer <token>'{
"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
Bearer PAT 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
/
api
/
v1
/
clusters
/
aws
/
instance-types
List AWS instance types
import requests
url = "https://platform.ankra.app/api/v1/clusters/aws/instance-types"
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/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/api/v1/clusters/aws/instance-types \
--header 'Authorization: Bearer <token>'{
"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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
PAT organisation override.
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.