List UpCloud NAT gateway plans
import requests
url = "https://platform.ankra.app/api/v1/clusters/upcloud/gateway-plans"
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/clusters/upcloud/gateway-plans', 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/clusters/upcloud/gateway-plans \
--header 'Authorization: Bearer <token>'{
"plans": [
{
"name": "<string>",
"bandwidth_mbps": 123,
"server_number": 123,
"high_availability": true,
"max_connections": 123,
"vpn_tunnel_amount": 123,
"supported_features": [
"<string>"
]
}
],
"default_plan": "<string>",
"plan_change_notice": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}UpCloud Clusters
List UpCloud NAT gateway plans
Bearer PAT authentication; RBAC permission clusters.read. Lists the live UpCloud NAT gateway plans the credential’s account can create (GET /1.3/gateway/plans) with bandwidth, server count and whether the plan is highly available, plus the plan a create without gateway_plan gets and the notice a day-2 plan change carries.
GET
/
api
/
v1
/
clusters
/
upcloud
/
gateway-plans
List UpCloud NAT gateway plans
import requests
url = "https://platform.ankra.app/api/v1/clusters/upcloud/gateway-plans"
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/clusters/upcloud/gateway-plans', 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/clusters/upcloud/gateway-plans \
--header 'Authorization: Bearer <token>'{
"plans": [
{
"name": "<string>",
"bandwidth_mbps": 123,
"server_number": 123,
"high_availability": true,
"max_connections": 123,
"vpn_tunnel_amount": 123,
"supported_features": [
"<string>"
]
}
],
"default_plan": "<string>",
"plan_change_notice": "<string>"
}{
"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.
Query Parameters
Response
Successful response
One-server plans first, then by bandwidth.
Show child attributes
Show child attributes
The plan a create without gateway_plan gets.
What a day-2 plan change does to the cluster's outbound internet; show it before the user confirms a change.