List the private-capacity rate cards (bearer twin)
import requests
url = "https://platform.ankra.app/api/v1/org/cloud-cost/rate-cards"
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/org/cloud-cost/rate-cards', 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/org/cloud-cost/rate-cards \
--header 'Authorization: Bearer <token>'{
"credentials": [
{
"cluster_count": 123,
"credential_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"credential_name": "<string>",
"currency": "<string>",
"memory_gb_monthly_amount": "<string>",
"monthly_cost_estimate_cents": 123,
"provider": "<string>",
"source": "<string>",
"storage_gb_monthly_amount": "<string>",
"vcpu_monthly_amount": "<string>"
}
],
"currency": "<string>",
"organisation_card": {
"currency": "<string>",
"memory_gb_monthly_amount": "<string>",
"storage_gb_monthly_amount": "<string>",
"vcpu_monthly_amount": "<string>"
},
"provider_defaults": {},
"unpriced_cluster_count": 123
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Cost
List the private-capacity rate cards (bearer twin)
Every private credential with the rates that price it, the organisation fallback card, the provider defaults, and how many private clusters nothing prices yet. Bearer-PAT twin of the browser route of the same name under /org; the console’s session cookie is not accepted here and the browser route answers a token with a login redirect.
GET
/
api
/
v1
/
org
/
cloud-cost
/
rate-cards
List the private-capacity rate cards (bearer twin)
import requests
url = "https://platform.ankra.app/api/v1/org/cloud-cost/rate-cards"
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/org/cloud-cost/rate-cards', 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/org/cloud-cost/rate-cards \
--header 'Authorization: Bearer <token>'{
"credentials": [
{
"cluster_count": 123,
"credential_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"credential_name": "<string>",
"currency": "<string>",
"memory_gb_monthly_amount": "<string>",
"monthly_cost_estimate_cents": 123,
"provider": "<string>",
"source": "<string>",
"storage_gb_monthly_amount": "<string>",
"vcpu_monthly_amount": "<string>"
}
],
"currency": "<string>",
"organisation_card": {
"currency": "<string>",
"memory_gb_monthly_amount": "<string>",
"storage_gb_monthly_amount": "<string>",
"vcpu_monthly_amount": "<string>"
},
"provider_defaults": {},
"unpriced_cluster_count": 123
}{
"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.