Softlayer API如何在对象文件管理器中设置OR条件

时间:2017-11-14 09:30:44

标签: ibm-cloud-infrastructure

例如,我希望GET https://api.softlayer.com/rest/v3.1/SoftLayer_Product_Package/46/getItems.json包含一些指定的类别。我尝试在https://sldn.softlayer.com/article/object-filters中使用字符串包含过滤器,operation ='* = guest_core ram port_speed'。

Request URL:  GET https://api.softlayer.com/rest/v3.1/SoftLayer_Product_Package/46/getItems.json?objectFilter=%7B%22items%22%3A%7B%22categories%22%3A%7B%22categoryCode%22%3A%7B%22operation%22%3A%22%2A%3D+guest_core+ram+port_speed%22%7D%7D%7D%7D&objectMask=mask%5Bdescription%2C+capacity%2C+prices%5Bid%2C+locationGroupId%2C+categories%5BcategoryCode%5D%5D%5D

但是它返回了空的结果。

1 个答案:

答案 0 :(得分:0)

objectFilter不支持“OR”操作