API Documentation
Packages
/packages
Shows a list of all available VPS hosting packages. When creating a new VM by POSTing to the API, a package ID from this list should be specified as package_id.
Information on a single package.
The attributes returned by the request will be:
idThe ID of the package.nameA descriptive name of the package.memoryThe amount of RAM present in the package, in megabytes.disk_spaceThe amount of hard drive space available in the package, in megabytes.cpu_coresThe amount of CPU cores available to the specified package.bandwidthMonthly bandwidth limit for the VM, in gigabytes.ipv4_addressesIPv4 addresses allocated to the VM.ipv6_addressesIPv6 addresses allocated to the VM.price_hour_eurHourly price in euroes.price_hour_gbpHourly price in Brittish pounds.price_hour_usdHourly price in US dollars.price_hour_eurMonthly price in euroes.price_hour_gbpMonthly price in Brittish pounds.price_hour_usdMonthly price in US dollars.os_template_idsAn array of operating system templates that may be used with the plan.
-
Success - 200 OK
Returns a JSON object containing the specified package.
-
Failure (No Package) - 404 Not Found
Sent if the ID specified does not correspond to an available package.
Example
curl -H 'X-Api-Key: xxxx' https://api.vps247.com/packages/1
Example Response
{
"id": 1,
"name": "Budget",
"memory": 512,
"disk_space": 8192,
"cpu_cores": 1,
"bandwidth": 100,
"ipv4_addresses": 1,
"ipv6_addresses": 0,
"price_hour_eur": null,
"price_hour_gbp": "0.01",
"price_hour_usd": null,
"price_month_eur": null,
"price_month_gbp": "5.0",
"price_month_usd": null,
"os_template_ids": [
1,
2
]
}