我正在尝试设置API网关来使用我运行的GCP功能。
我以前使用以下代码在终端中创建了一个配置:
gcloud api-gateway api-configs create apigateway-gcpfunction-config \
--api=my-api --openapi-spec=apigateway_gcpfunction_config.yaml \
--project=my-project [email protected]
此功能正确,当我使用以下代码查看配置时,我会收到一个通知,即它是有效的:
gcloud api-gateway api-configs describe apigateway-gcpfunction-config --api=my-api --project=my-project
但是现在我尝试更新配置文件,因为我需要更改我的GCP功能的路径,但我在文档中找不到有关如何更新代码的任何内容。
我在可以更新配置的各种属性,但是我不知道如何更新代码本身?这是不可能的吗?我应该每次都会创建一个新的配置,并在每次对配置文件进行更新时使用新的配置重新启动新的网关?
I'm trying to set up API Gateway to work with a GCP Function that I have running.
I previously created a config using the following code in terminal:
gcloud api-gateway api-configs create apigateway-gcpfunction-config \
--api=my-api --openapi-spec=apigateway_gcpfunction_config.yaml \
--project=my-project [email protected]
This works correctly, and when I view my config using the following code I get a notification that it's active:
gcloud api-gateway api-configs describe apigateway-gcpfunction-config --api=my-api --project=my-project
However now I'm trying to update my config file because I needed to change the path for my GCP Function, but I can't find anything in the documentation for how to update the code.
I see in this article detailing updating api-configs that it's possible to update various attributes of a config, but I can't figure out how to update the code itself? Is this impossible? Should I just create a new config every time and relaunch a new gateway with a new config every time there's an update to the config file????
发布评论
评论(1)
根据此文档的 config :
它也在描述:
到目前为止,我们只能创建一个新的api config 如果我们要更新我们的配置文件。
我们可以为a 功能请求。
According to this documentation on updating an API config:
It is also stated in the documentation that you provided under Description:
As of the moment, we could only create a new API config if we want to update our config file.
We could file for a feature request for this option to be available in the future.