Softlayer API:列出图像按图像名称排序

时间:2017-02-27 20:12:58

标签: api ibm-cloud-infrastructure

我使用以下Softlayer API列出所有图像:

https://id:key@api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest_Block_Device_Template_Group/getPublicImages.json

有没有办法返回按图像名称升序排序的所有图像?

谢谢!

Q.Z。

1 个答案:

答案 0 :(得分:0)

请试试这个:

https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest_Block_Device_Template_Group/getPublicImages?objectFilter={"name":{"operation":"orderBy","options":[{"name":"sort","value":["ASC"]}]}}

Method: Get

用您自己的信息替换:$ user和$ apiKey