Packages
Packages are named collections of resources to describe the dimensions of either a container or a hardware virtual machine. These resources include (but are not limited to) RAM, DISK & CPU caps.
ListPackages (GET /:login/packages)
Provides a list of packages available in this datacenter.
Inputs
The following are all optional inputs:
Field
Type
Description
name
String
The "friendly" name for this package
memory
Number
How much memory will by available (in MiB)
disk
Number
How much disk space will be available (in MiB)
swap
Number
How much swap space will be available (in MiB)
lwps
Number
Maximum number of light-weight processes (threads) allowed
vcpus
Number
Number of vCPUs for this package
version
String
The version of this package
group
String
The group this package belongs to
flexible_disk
Boolean
Whether this is a flexible_disk package
When any values are provided for one or more of the aforementioned inputs, the retrieved packages will match all of them.
When querying, wildcards (i.e. '') are allowed for string fields. For example, to list all packages with a name that starts with "foo", give "foo" as the package name.
Returns
An array of objects, of the form:
Field
Type
Description
id
UUID
Unique id for this package
name
String
The "friendly" name for this package
memory
Number
How much memory will by available (in MiB)
disk
Number
How much disk space will be available (in MiB)
swap
Number
How much swap space will be available (in MiB)
lwps
Number
Maximum number of light-weight processes (threads) allowed
vcpus
Number
Number of vCPUs for this package
version
String
The version of this package
group
String
The group this package belongs to
description
String
A human-friendly description about this package
disks
Array
The disks this package contains (Allowed when flexible_disk is true
)
flexible_disk
Boolean
Whether this is a flexible_disk package (bhyve only)
default
Boolean
(deprecated) Whether this is the default package in this datacenter
Errors
For all possible errors, see CloudAPI HTTP Responses.
Error Code
Description
ResourceNotFound
If :login
does not exist
CLI Command
or
Example Request
Example Response
GetPackage (GET /:login/packages/:id)
Gets a package by name
or id
.
Inputs
None
Returns
Field
Type
Description
id
UUID
Unique id for this package
name
String
The "friendly" name for this package
memory
Number
How much memory will by available (in MiB)
disk
Number
How much disk space will be available (in MiB)
swap
Number
How much swap space will be available (in MiB)
lwps
Number
Maximum number of light-weight processes (threads) allowed
vcpus
Number
Number of vCPUs for this package
version
String
The version of this package
group
String
The group this package belongs to
description
String
A human-friendly description about this package
disks
Array
The disks this package contains (Allowed when flexible_disk is true
)
flexible_disk
Boolean
Whether this is a flexible_disk package (bhyve only)
default
Boolean
(deprecated) Whether this is the default package in this datacenter
Errors
For all possible errors, see CloudAPI HTTP Responses.
Error Code
Description
ResourceNotFound
If :login
or :id
does not exist
CLI Command
or
Example Request
Example Response
Last updated