Get resource upgrade options
curl --request GET \
--url https://my.server.express/api/v1/cloud/{id}/upgrade \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/cloud/{id}/upgrade', 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}/upgrade"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"server": {
"cores": 123,
"ramMb": 123,
"diskGb": 123,
"ipv4": 123
},
"current": {
"cores": 0,
"ramGb": 0,
"diskGb": 0,
"ipv4": 0
},
"currentPriceMinor": 123,
"pending": {
"invoiceId": "<string>",
"extras": {
"cores": 0,
"ramGb": 0,
"diskGb": 0,
"ipv4": 0
},
"priceMinor": 123
},
"pricing": {
"pricePerCore": 123,
"pricePerGbRam": 123,
"pricePerGbDisk": 123,
"pricePerIpv4": 123,
"maxExtraCores": 123,
"maxExtraGbRam": 123,
"maxExtraGbDisk": 123,
"maxExtraIpv4": 123,
"upgradeCurrency": "<string>",
"hardware": "<string>"
}
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Cloud
Get resource upgrade options
The server’s live size, the extras it already pays for, any unpaid upgrade, and this hardware’s per-unit monthly prices
and ceilings. pricing is null when the hardware sells no upgrades. Prices are in the node group’s upgradeCurrency
(converted to the service currency at order time). Session auth only; owner or team ADMIN.
GET
/
v1
/
cloud
/
{id}
/
upgrade
Get resource upgrade options
curl --request GET \
--url https://my.server.express/api/v1/cloud/{id}/upgrade \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/cloud/{id}/upgrade', 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}/upgrade"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"server": {
"cores": 123,
"ramMb": 123,
"diskGb": 123,
"ipv4": 123
},
"current": {
"cores": 0,
"ramGb": 0,
"diskGb": 0,
"ipv4": 0
},
"currentPriceMinor": 123,
"pending": {
"invoiceId": "<string>",
"extras": {
"cores": 0,
"ramGb": 0,
"diskGb": 0,
"ipv4": 0
},
"priceMinor": 123
},
"pricing": {
"pricePerCore": 123,
"pricePerGbRam": 123,
"pricePerGbDisk": 123,
"pricePerIpv4": 123,
"maxExtraCores": 123,
"maxExtraGbRam": 123,
"maxExtraGbDisk": 123,
"maxExtraIpv4": 123,
"upgradeCurrency": "<string>",
"hardware": "<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.