我正在寻找一种方法来自动更新 Google API Gateway 的配置,即一步更改现有“API Gateway”实例的配置。
到目前为止,我已经尝试过,假设新的 API 配置名称是“my-new-config”并且 API 网关名称是“my-gateway”:
> gcloud beta api-gateway gateways update my-gateway --api-config=my-new-config --location=us-central1
输出:
ERROR: (gcloud.beta.api-gateway.gateways.update) INVALID_ARGUMENT: update_mask does not contain any field paths
> gcloud beta api-gateway gateways update my-gateway --api-config=my-new-config --location=us-central1 --display-name random-string-for-display-name
输出:
命令执行成功,但未应用配置更改。
gcloud 版本:333.0.0
操作系统:Debian linux
我在 Google 的问题跟踪器中创建了 2 张票证(一张、两张),但 3 周后他们没有任何活动。