【发布时间】:2020-08-09 09:06:52
【问题描述】:
我正在使用 AWS CLI update-stage 命令为 API 网关方法配置特定的限制设置,效果很好:
aws apigateway update-stage --rest-api-id <the-id> --stage-name <the-stage-name>
--patch-operations op=replace,path='/~1cats~1{pawId}/GET/throttling/rateLimit',value=10
但是,当我尝试删除刚刚配置的设置并按照默认设置从阶段继承限制设置时,出现错误:
aws apigateway update-stage --rest-api-id <the-id> --stage-name <the-stage-name>
--patch-operations op=remove,path='/~1cats~1{pawId}/GET/throttling/rateLimit'
An error occurred (BadRequestException) when calling the UpdateStage operation:
Cannot remove method setting ~1cats~1{pawId}/GET/throttling/rateLimit because there
is no method setting for this method
我如何使用 CLI(或 AWS 开发工具包)来获取再次从阶段继承设置的方法?
【问题讨论】:
标签: amazon-web-services aws-sdk aws-api-gateway aws-cli throttling