Request higher Ankra Cloud limits
import requests
url = "https://platform.ankra.app/api/v1/clusters/ankracloud/quota-requests"
payload = {
"limits": {
"servers": 500000,
"cores": 500000,
"memory_mebibytes": 500000,
"storage_gibibytes": 500000,
"floating_ips": 500000,
"routers": 500000,
"private_networks": 500000
},
"reason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
limits: {
servers: 500000,
cores: 500000,
memory_mebibytes: 500000,
storage_gibibytes: 500000,
floating_ips: 500000,
routers: 500000,
private_networks: 500000
},
reason: '<string>'
})
};
fetch('https://platform.ankra.app/api/v1/clusters/ankracloud/quota-requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/clusters/ankracloud/quota-requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"limits": {
"servers": 500000,
"cores": 500000,
"memory_mebibytes": 500000,
"storage_gibibytes": 500000,
"floating_ips": 500000,
"routers": 500000,
"private_networks": 500000
},
"reason": "<string>"
}
'{
"request": {
"id": "<string>",
"state": "pending",
"limits": {},
"reason": "<string>",
"staff_reason": "<string>",
"requested_by_email": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"decided_at": "2023-11-07T05:31:56Z"
}
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}Ankra Cloud Clusters
Request higher Ankra Cloud limits
Asks Ankra Cloud staff to raise the account’s limits, as the Ankra Cloud console’s quota request does. Each limit asked for must be higher than the account’s limit today; a limit left out stays as it is. The request changes no limit by itself, and an account holds one pending request at a time (409 while another is pending). Requires credentials.write for the whole organisation, not only a project. Answers 404 unless the organisation’s ankra_cloud_quota_management and ankra_cloud_provider feature flags are both on.
POST
/
api
/
v1
/
clusters
/
ankracloud
/
quota-requests
Request higher Ankra Cloud limits
import requests
url = "https://platform.ankra.app/api/v1/clusters/ankracloud/quota-requests"
payload = {
"limits": {
"servers": 500000,
"cores": 500000,
"memory_mebibytes": 500000,
"storage_gibibytes": 500000,
"floating_ips": 500000,
"routers": 500000,
"private_networks": 500000
},
"reason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
limits: {
servers: 500000,
cores: 500000,
memory_mebibytes: 500000,
storage_gibibytes: 500000,
floating_ips: 500000,
routers: 500000,
private_networks: 500000
},
reason: '<string>'
})
};
fetch('https://platform.ankra.app/api/v1/clusters/ankracloud/quota-requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/clusters/ankracloud/quota-requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"limits": {
"servers": 500000,
"cores": 500000,
"memory_mebibytes": 500000,
"storage_gibibytes": 500000,
"floating_ips": 500000,
"routers": 500000,
"private_networks": 500000
},
"reason": "<string>"
}
'{
"request": {
"id": "<string>",
"state": "pending",
"limits": {},
"reason": "<string>",
"staff_reason": "<string>",
"requested_by_email": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"decided_at": "2023-11-07T05:31:56Z"
}
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}Authorizations
Body
application/json