我正在尝试获取通用(不特定于某个数据中心)的性能块存储的价格项目。我可以看到这些将 locationGroupId 设置为空白或 null,但我似乎无法让 objectFilter 使用它,查询不返回任何内容。如果我省略 locationGroupId 过滤器,我会得到一个包含特定位置和非特定位置价格的结果。
GET /rest/v3.1/SoftLayer_Product_Package/759/getItemPrices.json?objectMask=mask[locationGroupId,id,categories,item]&objectFilter={"itemPrices":{"categories":{"categoryCode":{"operation":"performance_storage_space"}},"item":{"keyName":{"operation":"$=GBs"}},"locationGroupId":{"operation":"is null"}}}
我猜对象过滤器有问题,有什么想法吗?
如果我过滤 locationGroupId 509 它可以工作:
/rest/v3.1/SoftLayer_Product_Package/759/getItemPrices.json?objectMask=mask[locationGroupId,id,categories,item]&objectFilter={"itemPrices":{"categories":{"categoryCode":{"operation":"performance_storage_space"}},"item":{"keyName":{"operation":"$=GBs"}},"locationGroupId":{"operation":509}}}