List plans this server can move to
curl --request GET \
--url https://my.server.express/api/v1/cloud/{id}/plan \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/cloud/{id}/plan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/cloud/{id}/plan"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"currency": "<string>",
"currentPlanSlug": "<string>",
"currentMonthlyMinor": 123,
"remainingDays": 123,
"currentDiskGb": 123,
"options": [
{
"direction": "upgrade",
"dueNowMinor": 123,
"creditMinor": 123,
"extraDays": 123,
"newMonthlyMinor": 123,
"oldMonthlyMinor": 123,
"slug": "<string>",
"name": "<string>",
"tagline": "<string>",
"cores": 123,
"ramMb": 123,
"diskGb": 123,
"monthlyMinor": 123,
"current": true,
"disk": {
"shrinks": true,
"shrinkGb": 123,
"keepAsExtraGb": 123
}
}
],
"pending": {
"toPlanSlug": "<string>",
"invoiceId": "<string>"
}
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Cloud
List plans this server can move to
The plans sold on this server’s own hardware, each priced in the service’s currency (reseller discount applied) and
quoted against what the service pays today, with the disk consequence of moving. Plans that can’t be priced in the
service currency are left out. pending is an unpaid upgrade, if any. Session auth only; owner or team ADMIN (billing
role).
GET
/
v1
/
cloud
/
{id}
/
plan
List plans this server can move to
curl --request GET \
--url https://my.server.express/api/v1/cloud/{id}/plan \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/cloud/{id}/plan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/cloud/{id}/plan"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"currency": "<string>",
"currentPlanSlug": "<string>",
"currentMonthlyMinor": 123,
"remainingDays": 123,
"currentDiskGb": 123,
"options": [
{
"direction": "upgrade",
"dueNowMinor": 123,
"creditMinor": 123,
"extraDays": 123,
"newMonthlyMinor": 123,
"oldMonthlyMinor": 123,
"slug": "<string>",
"name": "<string>",
"tagline": "<string>",
"cores": 123,
"ramMb": 123,
"diskGb": 123,
"monthlyMinor": 123,
"current": true,
"disk": {
"shrinks": true,
"shrinkGb": 123,
"keepAsExtraGb": 123
}
}
],
"pending": {
"toPlanSlug": "<string>",
"invoiceId": "<string>"
}
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Authorizations
Session access token (JWT) from POST /v1/auth/login or /v1/auth/refresh. A session satisfies every API scope.
Path Parameters
Service id of the cloud server.