List instance types for an AWS cluster
import requests
url = "https://platform.ankra.app/org/clusters/aws/{cluster_id}/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/{cluster_id}/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/{cluster_id}/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 instance types for an AWS cluster
Browser session authentication; RBAC permission clusters.read. The instance-type catalog in the cluster’s own region and credential. Answers 404 while the organisation’s aws_provider feature flag is off.
GET
/
org
/
clusters
/
aws
/
{cluster_id}
/
instance-types
List instance types for an AWS cluster
import requests
url = "https://platform.ankra.app/org/clusters/aws/{cluster_id}/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/{cluster_id}/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/{cluster_id}/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"
}