我正在尝试GCP为我们的架构创建部署管理器模板。
例如,在创建一个sql实例时,我的yaml文件中包含以下内容:
- 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 list
来查看可用类型的完整列表,但是我找不到关于每种类型可用或必需的属性的完整文档。
具体来说,我正在寻找gcp-types/sqladmin-v1beta4:instances
和appengine.v1.version
,但我希望能找到一个全面的列表。
我能在GCP文档中找到的所有内容都是REST api:https://cloud.google.com/deployment-manager/docs/configuration/supported-resource-types
发布于 2019-04-26 21:03:51
在您的原始问题中,您发布了以下链接:
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
这看起来很全面。
https://stackoverflow.com/questions/55874752
复制相似问题