繁体   English   中英

如何列出使用PHP的Google计算引擎存储的图像?

[英]how to list the images stored by google compute engine using PHP?

我正在使用PHP sdk,以便列出Google计算引擎帐户中可用的所有图像。 这是我的代码:

$images= $this->service->listImages($projectID, $optionalArray);    
$image = $images->getItems();

即使我的帐户中有图片,它也会返回空数组

我确认listImages()函数将仅列出您使用命令“ gcloud compute images create ...”创建的私有映像。

供参考,私有图像记录在[1]中。

链接:
[1] -https://cloud.google.com/compute/docs/images#private_images

问候,
保罗

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM