List Resize Options
curl --request GET \
--url https://api.arct.cloud/v1/servers/{server_id}/resize-options \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.arct.cloud/v1/servers/{server_id}/resize-options"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.arct.cloud/v1/servers/{server_id}/resize-options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"can_resize": true,
"blocked_code": "<string>",
"blocked_reason": "<string>",
"current_plan": "<string>",
"billing_period": "<string>",
"current_price_period": 123,
"period_end": "2023-11-07T05:31:56Z",
"days_left": 123,
"card": {
"brand": "<string>",
"last4": "<string>",
"exp_month": 123,
"exp_year": 123
},
"promo": {
"code": "<string>",
"discount_type": "<string>",
"discount_value": 123,
"label": "<string>"
},
"unpaid_invoice": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoice_number": "<string>",
"total": 123,
"due_date": "2023-11-07T05:31:56Z",
"overdue": true
},
"pending_resize": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_plan": "<string>",
"amount": 123,
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z"
},
"plans": [
{
"slug": "<string>",
"name": "<string>",
"cpu_cores": 123,
"ram_gb": 123,
"storage_gb": 123,
"bandwidth_tb": 123,
"price_period": 123,
"price_period_list": 123,
"promo_applies": true,
"is_current": true,
"eligible": true,
"reason": "<string>",
"reason_label": "<string>",
"amount_due_today": 123
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Servers
List Resize Options
Returns the plans this server can resize to, with amount_due_today for each.
GET
/
servers
/
{server_id}
/
resize-options
List Resize Options
curl --request GET \
--url https://api.arct.cloud/v1/servers/{server_id}/resize-options \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.arct.cloud/v1/servers/{server_id}/resize-options"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.arct.cloud/v1/servers/{server_id}/resize-options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"can_resize": true,
"blocked_code": "<string>",
"blocked_reason": "<string>",
"current_plan": "<string>",
"billing_period": "<string>",
"current_price_period": 123,
"period_end": "2023-11-07T05:31:56Z",
"days_left": 123,
"card": {
"brand": "<string>",
"last4": "<string>",
"exp_month": 123,
"exp_year": 123
},
"promo": {
"code": "<string>",
"discount_type": "<string>",
"discount_value": 123,
"label": "<string>"
},
"unpaid_invoice": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoice_number": "<string>",
"total": 123,
"due_date": "2023-11-07T05:31:56Z",
"overdue": true
},
"pending_resize": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_plan": "<string>",
"amount": 123,
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z"
},
"plans": [
{
"slug": "<string>",
"name": "<string>",
"cpu_cores": 123,
"ram_gb": 123,
"storage_gb": 123,
"bandwidth_tb": 123,
"price_period": 123,
"price_period_list": 123,
"promo_applies": true,
"is_current": true,
"eligible": true,
"reason": "<string>",
"reason_label": "<string>",
"amount_due_today": 123
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Authorizations
API token from Dashboard > Settings > API Tokens.
Path Parameters
Response
Successful Response
Why can_resize is false, such as no_payment_method.
Days left in the billing period.
The card a resize charges.
Show child attributes
Show child attributes
The recurring promo code in effect on the server; it follows the server onto the new plan.
Show child attributes
Show child attributes
A renewal invoice that must be paid before the server can be resized.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes