List server plans
Overview
Lists available plans and prices. groups contains plans grouped by product and location. billing_cycles lists the available payment periods and their lengths in months. default_billing_cycle is used when an order does not specify a cycle. currency applies to all prices. payment_window_minutes is the time allowed to pay for an order.
New servers are created in default_team, which is the team the request works in. The SSH keys and script an order names are taken from the same team. is_active is always true.
When ordering is unavailable, enabled is false, message explains why, and no plans are returned.
Permissions
Requires the server.read (View servers) permission for the selected team. Resources outside that team return 404.
Authorization
Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.
Send it as Bearer <token>.
Response 200
application/jsonThe record, as a JSON object. There is no envelope.
The value of enabled.
The three-letter currency code used for monetary amounts.
How many minutes the original payment window allowed.
The value of billing_cycles.
Show child attributesHide child attributes
The value of value.
A short label shown to customers.
The value of months.
The value of default_billing_cycle.
The value of default_team.
Show child attributesHide child attributes
The id ID.
The name shown to customers.
Whether the resource is active.
The message text.
The value of groups.
Show child attributesHide child attributes
The id ID.
The name shown to customers.
An optional description shown to customers.
The value of subtext.
The value of speed.
The value of ddr5.
The value of locations.
Show child attributesHide child attributes
The id ID.
The value of display_name.
The name shown to customers.
The value of flag_url.
The value of cid.
The value of group_name.
The location id ID.
The product group id ID.
The value of plans.
Show child attributesHide child attributes
The value of key.
The id ID.
The name shown to customers.
The value of vcpu_cores.
Memory in advertised units; 1000 represents 1 GiB.
Advertised disk capacity in GiB.
Transfer allowance in advertised units; 1000 represents 1 TiB and zero means unlimited.
The value of hdd.
Primary disk capacity in GiB.
Secondary hard disk capacity in GiB.
The value of price.
The value of deployment_time.
The billing product identifier.
The value of available.
The value of stock.
Errors
- 401
- The key was missing, malformed, revoked, or belongs to an account that no longer exists.
- 403
- Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
- 429
- Too many requests. The
Retry-Afterheader says how many seconds to wait. Limits are per account, so several keys on one account share them.
Still stuck? Contact our team
View as Markdown