List the private-capacity rate cards
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
The private credentials the caller may read with the rates that price them, the organisation fallback card, the provider defaults, and how many of the private clusters the caller may read nothing prices yet. A token pinned to a project or a member limited to projects reads their project’s credentials and clusters only, never another project’s or a credential no project owns; a caller narrowed to the clusters they hold clusters.read on counts and prices those clusters only. 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
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"
}