Child pages
  • Add Instance Type
Skip to end of metadata
Go to start of metadata

To add a new instance type, use the following request:

POST /instance_types.xml
POST /instance_types.json

XML Request example

curl -i -X POST -d '<instance_type><label>example</label><cpus>1</cpus><memory>1024</memory><disk_size>50</disk_size><bandwidth>100</bandwidth></instance_type>' -u user:userpass http://onapp.test/instance_types.xml -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request example

curl -i -X POST -d '{"instance_type": {"label":"example", "cpus":"1", "memory":"1024", "disk_size":"50", "bandwidth":"100"}}' -u user:userpass http://onapp.test/instance_types.json -H 'Accept: application/json' -H 'Content-type: application/json'

Where:

label - the name of the instance type

cpus - the number of CPU cores available in this instance type. The maximum CPUs value is 8.

memory - the RAM size (GB) available in the instance type. The maximum value is 16384 MB by default.

disk_size -  the disk size available in this instance type. The maximum value is 100 GB by default.

bandwidth - the bandwidth available in this instance type. The maximum value is 450 GB by default.

You can change the default minimum and/or maximum values for memory, disk size and bandwidth by adding the following parameters to the config/on_app.yml file and restarting OnApp services:

  • instance_type_min_disk_size (GB)
  • instance_type_max_disk_size (GB)
  • instance_type_max_memory (MB)
  • instance_type_min_bandwidth (GB)
#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels