recently, IBM Bluemix releases Reserved Virtual Server(SoftLayer_Virtual_ReservedCapacityGroup).
We checked a relative API.
- SoftLayer_Virtual_ReservedCapacityGroup
- SoftLayer_Virtual_ReservedCapacityGroup_Instance
- SoftLayer_Account::getActiveReservedCapacityAgreements
- SoftLayer_Virtual_Guest_Status(1009)
And we can't find how to create reserved capacity group.
we are using API(placeorder) for order.
Looking this api, there are containers about each product.
but there is no container about reserved capacity group.
To order a SoftLayer_Virtual_ReservedCapacityGroup you can use the following rest api:
Method: POST
Replace the [username] and [apiKey] with your credentials.
Body: Json
Reference: https://softlayer.github.io/reference/datatypes/SoftLayer_Container_Product_Order_Virtual_ReservedCapacity/
To get the available "backendRouterId" you can use the below rest call:
Method: GET
You will get a response like this example:
I selected the "backendRouterId" for "Dallas 13", you can choose any datacenter that you want.
Reference:
https://softlayer.github.io/reference/services/SoftLayer_Network_Pod/getAllObjects/
To get the item prices ID for "Reserved Capacity" you can use this rest api:
Method: GET
Keep in mind the item price id that you choose has to be in the same location that the "backendRouterId".
The item prices that do not have locations are standard, it means that are available for all locations.
Reference:
https://softlayer.github.io/reference/services/SoftLayer_Product_Package/getItemPrices/