ServerMania logo

Get Instance Package Details

To view the details of an instance package, use the following request:

GET /instance_packages/:instance_package_id.xml
GET /instance_packages/:instance_package_id.json

XML Request Example 

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

JSON Request Example

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

XML Output Example

<instance_package>
  <id type="integer">1</id>
  <label>Test</label>
  <cpus type="integer">2</cpus>
  <disk_size type="integer">1</disk_size>
  <memory type="integer">128</memory>
  <bandwidth type="integer">1</bandwidth>
  <created_at type="datetime">2015-06-17T15:29:26+00:00</created_at>
  <updated_at type="datetime">2015-06-17T15:29:26+00:00</updated_at>
  <billing_plan_ids type="array">
    <fixnum type="integer">1</fixnum>
    <fixnum type="integer">5</fixnum>
    <fixnum type="integer">140</fixnum>
  </billing_plan_ids>
</instance_package>

Where:

id - ID of the instance package

label - the name of the instance package

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

disk_size -  the disk size available in this instance package

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

bandwidth - the bandwidth available in this instance package

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

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

billing_plan_ids - the array of billing plans to which this instance package was added

fixnum - the ID of the billing plan in which the instance package was used


Page History

v.5.2

  • removed the deprecated request method - GET /instance_types/:instance_type_id.