I am having trouble understanding how to form a REST API request to order block storage identical to what I order through the web-based control interface.
I have ordered a "Performance" storage type disk, in the ams01 location, with monthly billing, that is 100GB with 300 IOPS.
I fail to understand which service I should use - and if it is the place_order service - how I should properly make this REST API request. A practical example using the values above would be very helpful.
You can use the following REST request to order performance block storage in Amsterdam, with 100 Gb, 300 Iops, by default it is monthly ordered, but if you want to order hourly, you need to add the parameter "useHourlyPricing" = true
Remember to change [username] and [apiKey] values for valid credentials, and change the method verifyOrder by placeOrder when you are ready to order.
The item prices you are seeing above have the following descriptions:
For more information about iops and capacity for block storage volumes you may see this:
SoftLayer Object Storage API: Creation of 250GB/500GB Block Storage failure. 20GB or 1000GB are OK
To retrieve valid property values for your orders, try the following request to obtain valid item prices:
Or you may go further by using Object Masks along with it to retrieve item prices by their available location.
Note: You can also order endurance block storage using the package 759, the structure is similar as above, the difference is that you need to remove iops parameter and change for valid item prices for endurance storage.
Former way
The following rest request is to order a Performance block storage using the valid structure which is still used for some api users and it's still valid via Api, on this case the package id you need to use is 222 as following:
The item prices you are seeing above have the following descriptions:
You can also review the following links:
osFormatType Endurance Block Storage ordering Softlayer
How can we order "Storage As A Service (StaaS)"?