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

To edit an instance type, use the following request:

PUT /instance_types/:instance_type_id.xml
PUT /instance_types/:instance_type_id.json

XML Request example

curl -i -X PUT -d '<instance_type><label>new_label</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/:instance_type_id.xml -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request example

curl -i -X PUT -d '{"instance_type": {"label":"new_label", "cpus":"1", "memory":"1024", "disk_size":"50", "bandwidth":"100"}}' -u user:userpass http://onapp.test/instance_types/:instance_type_id.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 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