ServerMania logo

Get List of Instance Packages

To view the list of instance packages, use the following request:

GET /instance_packages.xml
GET /instance_packages.json

XML Request Example 

curl -i -X GET http://test/instance_packages.xml -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request Example 

curl -i -X GET http://test/instance_packages.json -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'

XML Output Example

<instance_packages type="array">
  <instance_package>
    <bandwidth type="integer">1</bandwidth>
    <cpus type="integer">2</cpus>
    <created_at type="datetime">2015-06-17T18:29:26+03:00</created_at>
    <disk_size type="integer">1</disk_size>
    <id type="integer">1</id>
    <label>Test</label>
    <memory type="integer">128</memory>
    <updated_at type="datetime">2015-06-17T18:29:26+03:00</updated_at>
  </instance_package>
  <instance_package>...</instance_package>
</instance_packages>

Where:

bandwidth - the bandwidth available in this instance package

cpus - the number of CPU cores available in this instance package

created_at - time when the instance package was created, in [YYYY][MM][DD]T[hh][mm][ss]Z

disk_size -  the disk size available in this instance package

id - ID of the instance package

label - the name of the instance package

memory - the RAM size (GB) available in the instance package

updated_at - time when the instance package was updated, in [YYYY][MM][DD]T[hh][mm][ss]Z


Page History

v5.2

  • removed the deprecated request method - GET /instance_types.