State a rate card
import requests
url = "https://platform.ankra.app/api/v1/org/cloud-cost/rate-cards"
payload = { "currency": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({currency: '<string>'})
};
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 PUT \
--url https://platform.ankra.app/api/v1/org/cloud-cost/rate-cards \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"currency": "<string>"
}
'{
"currency": "<string>",
"memory_gb_monthly_amount": "<string>",
"storage_gb_monthly_amount": "<string>",
"vcpu_monthly_amount": "<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"
}Cost
State a rate card
Writes the monthly rates for one private credential, or the organisation fallback card. Gated on billing.manage. A token pinned to a project, or a member limited to projects, writes the cards of their own project’s credentials only: the organisation fallback card and a credential no project owns are refused with 403, another project’s credential answers 404; the token stands in for the browser route’s CSRF double-submit. 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.
PUT
/
api
/
v1
/
org
/
cloud-cost
/
rate-cards
State a rate card
import requests
url = "https://platform.ankra.app/api/v1/org/cloud-cost/rate-cards"
payload = { "currency": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({currency: '<string>'})
};
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 PUT \
--url https://platform.ankra.app/api/v1/org/cloud-cost/rate-cards \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"currency": "<string>"
}
'{
"currency": "<string>",
"memory_gb_monthly_amount": "<string>",
"storage_gb_monthly_amount": "<string>",
"vcpu_monthly_amount": "<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
Body
application/json
Body of PUT /api/v1/org/cloud-cost/rate-cards: the monthly rates that price one private credential's capacity, or the organisation's fallback card.