文档-是否有Deployment Manager资源的可用属性列表?

时间:2019-04-26 20:48:06

标签: google-app-engine google-cloud-platform google-deployment-manager

我正在尝试GCP为我们的体系结构创建Deployment Manager模板。

例如,在创建sql实例时,这就是我的yaml文件中的内容:

#[your_attribs]
mod decoders;

我一直遇到这样的问题:

- name: carlosinstance
  type: gcp-types/sqladmin-v1beta4:instances
  properties:
    region: us-europe-west1
    settings:
      tier: db-n1-standard-1

我已经成功运行- code: RESOURCE_ERROR location: /deployments/foo3/resources/carlosinstance message: '{"ResourceType":"gcp-types/sqladmin-v1beta4:instances","ResourceErrorCode":"400","ResourceErrorMessage":{"code":400,"errors":[{"domain":"global","location":"","locationType":"other","message":"Unknown field name: zone","reason":"invalid"}],"message":"Unknown field name: zone","statusMessage":"Bad Request","requestPath":"https://www.googleapis.com/sql/v1beta4/projects/demo-project1/instances/carlosinstance","httpMethod":"PUT"}}' 来查看可用类型的完整列表,但是我找不到关于每种类型可用或必需的属性的完整文档。

特别是我正在寻找gcloud deployment-manager type listgcp-types/sqladmin-v1beta4:instances,但很想找到一份详尽的清单。

我在GCP文档中只能找到REST api:appengine.v1.version

1 个答案:

答案 0 :(得分:0)

在您最初的问题中,您发布了此链接:

https://cloud.google.com/deployment-manager/docs/configuration/supported-resource-types

如果查看该页面,则会看到每种资源类型都有指向further documentation的链接。这些似乎描述了所有可用的选项。例如,对于appengine.v1.version,我们将被带到:

https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions

这似乎很全面。