AWS CLI 的补丁路径无效?
Invalid patch path with AWS CLI?
我想重命名一些 API 网关 API 被自动踢出并命名为 horribling 的密钥。我尝试使用补丁操作,但收到以下信息。
$ aws --region $REGION --profile $PROFILE apigateway update-api-key \
--api-key $KEY --patch-operations op=replace,path=/name,value=MessengerAPI
A client error (BadRequestException) occurred when calling the UpdateApiKey operation:
Invalid patch path '/name' specified for op 'replace'. Must be one of:
[/description, /enabled]
这明显不是办法吧?有没有其他方法可以重命名已经生成的密钥?
是的,目前无法更新 API 密钥的名称。但我同意这是次优的。我们将调查并尝试解决此问题,但无法确定时间表。
当我们有更多信息时,我会更新此 post。
谢谢,
于尔根,API 网关
我想重命名一些 API 网关 API 被自动踢出并命名为 horribling 的密钥。我尝试使用补丁操作,但收到以下信息。
$ aws --region $REGION --profile $PROFILE apigateway update-api-key \
--api-key $KEY --patch-operations op=replace,path=/name,value=MessengerAPI
A client error (BadRequestException) occurred when calling the UpdateApiKey operation:
Invalid patch path '/name' specified for op 'replace'. Must be one of:
[/description, /enabled]
这明显不是办法吧?有没有其他方法可以重命名已经生成的密钥?
是的,目前无法更新 API 密钥的名称。但我同意这是次优的。我们将调查并尝试解决此问题,但无法确定时间表。
当我们有更多信息时,我会更新此 post。
谢谢,
于尔根,API 网关