Child pages
  • Get List of Instance Types
Skip to end of metadata
Go to start of metadata

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

GET /instance_types.xml
GET /instance_types.json

XML Request example

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

JSON Request example

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

XML Output example

 <?xml version="1.0" encoding="UTF-8"?>
<instance_types type="array">
  <instance_type>
    <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_type>
  <instance_type>...</instance_type>
</instance_types>

Where:

bandwidth - the bandwidth available in this instance type

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

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

disk_size -  the disk size available in this instance type

id - ID of the instance type

label - the name of the instance type

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

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

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels