列出所有 public 个图像模板

Listing all public image templates

如何列出所有 public 图像模板,就像您通过转至 "Devices" -> "Manage" -> "Images" 然后选择 "Public Images"?

我可以看到使用 "SoftLayer_Account",我可以执行以下相关操作:

getBlockDeviceTemplateGroups();
getPrivateBlockDeviceTemplateGroups();
getSharedBlockDeviceTemplateGroups();

并且"SoftLayer_Virtual_Guest_Block_Device_Template_Group"提供

getPublicCustomerOwnedImages();

getPublicCustomerOwnedImages() 给出的最接近我想要的, 除了它似乎排除了由 "SoftLayer Technologies, Inc.".

创建的那些

那么哪个 API 会给我整个列表?

你需要使用这些方法:

获取public张图片: http://sldn.softlayer.com/reference/services/SoftLayer_Virtual_Guest_Block_Device_Template_Group/getPublicImages

获取私有镜像: http://sldn.softlayer.com/reference/services/SoftLayer_Account/getBlockDeviceTemplateGroups

此致