I need to implement placing order for endurance storage in my Application using BPM over ICO (IBM Cloud Orchestrator) dynamically.
I needed following parameters for creating rest call for placing order
- Package to use
- Storage Type
- Location
- Storage Package (IOPS/GB)
- Storage Size
- Snapshot Space Size
OS Type
Package to use:- I already know package value for endurance is
240
.Storage Type:- For endurance storage what will be numeric id for endurance What rest call will help in this..?
Location:- This Rest call gives me locations ID:-
https:[username]:[apiKey]api.softlayer.com/rest /v3.1/SoftLayer_Product_Package/240/getRegions.json
- Storage Package:-
For Endurance I found only these 3 options in storage package :-
- 0.25 IOPS/GB
- 2 IOPS/GB
- 4 IOPS/GB
How will I get id for these three..?
- Storage Size:-
For storage size id I used a rest call :-
https://[username]:[apiKey]@api.softlayer.com/rest/v3/SoftLayer_Product_Package/240/getItemPrices?objectMask=mask[id,item[keyName,description],pricingLocationGroup[locations[id, name, longName]]]&objectFilter={"items":{"prices":{"pricingLocationGroup":{"locations":{"item":{"operation":"loc_code"}}}}}}
Is there any other way..?
- Snapshot Space Size:- What will be the rest call for snapshot space size ids..?
Please help me as I need to integrate this functionality as an API using BPM. We need to place order for endurance storage with dynamic values. Thanks in advance.