I am a beginner to softlayer and trying to implement block storage functionality. I got the Locations on the basis of selected Storage Type using below mentioned rest call:-
URL:-
https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Product_Package/240/getRegions.json?objectMask=mask[priceGroups[id, name]]
GET
As I locations data successfully but based on the any of the selected values Now I need to make another rest call for getting Storage Sizes available at that selected location. I used below URL to make this requirement fulfil:-
URL :-
https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Product_Package/240/getItems?objectMask=mask[id,description,prices[pricingLocationGroup[locations]],categories]&objectFilter={"items":{"prices":{"pricingLocationGroup":{"locations":{"name":{"operation":"hkg02"}}}}}}
GET
Here code used for location is hkg02
. I need to have available Storage Sizes
for selected Storage Type
and location
. I Need to filter above URL to get Storage sizes only. As we are getting redundant data as well. What will be
required filter for this.
Please make a needful favour. Thanks in advance.