【问题标题】:400 required field resource not found error400 未找到所需的字段资源错误
【发布时间】:2018-03-16 04:10:53
【问题描述】:
https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/regions/[REGION]/addresses

使用 POST Body 调用上面的 api

{"resource":{"name":"addressName"}}

返回状态码 400 错误信息 required field resource not found 错误

address.insert

【问题讨论】:

  • 尝试在您链接的页面上使用 try me {"name":"addressName"}
  • {"name":"addressName"} 这行得通。但谷歌文档建议使用 {"resource":{"name":"addressName"}}。

标签: google-api google-cloud-platform google-compute-engine


【解决方案1】:

发布以下内容

{"name":"addressName"}

将来使用 try me 获取正确的 post json 值更容易测试。文档没有像 try me 那样更新。

【讨论】:

    猜你喜欢
    • 2021-06-02
    • 2017-09-21
    • 2016-03-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-04
    • 1970-01-01
    • 2020-03-18
    相关资源
    最近更新 更多