Get AWS pricing
import requests
url = "https://platform.ankra.app/org/clusters/aws/pricing"
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/pricing', 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/pricing \
--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
}
],
"storage": {
"gp3_gib_month_usd": 123
},
"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
Get AWS pricing
Browser session authentication; RBAC permission clusters.read. Instance-type on-demand prices plus the encrypted gp3 root-volume price, with explicit incomplete-pricing reasons. Answers 404 while the organisation’s aws_provider feature flag is off.
GET
/
org
/
clusters
/
aws
/
pricing
Get AWS pricing
import requests
url = "https://platform.ankra.app/org/clusters/aws/pricing"
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/pricing', 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/pricing \
--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
}
],
"storage": {
"gp3_gib_month_usd": 123
},
"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.