我试图在中筛选区域列表
但是,我在Google中找不到任何文档,说要在API中添加过滤器:
req := computeService.Zones.List(project)上面的代码行将在中列出区域
在命令行中,我们也可以这样做。
gcloud compute zones list --filter="name:us-"谢谢,希德
发布于 2019-04-08 16:55:48
它将对某人有所帮助,以防:
req := computeService.Zones.List("ProjectName")
if err := req.Filter("name=us*").Pages(ctx, func(page *compute.ZoneList) error {
//Your code
}https://stackoverflow.com/questions/55543740
复制相似问题