3
我想移动一个水平之上,如一些资源:移动资源在AWS API网关
\v1\test1 -> \test1
\v2\test2 -> \test2
文档here说,这是可能的。但是,当我运行以下命令:
aws apigateway update-resource \
--rest-api-id xvxi2smff9 \
--resource-id 2r0epq \
--cli-input-json "{\"patchOperations\" : [
{
\"op\" : \"move\",
\"path\" : \"eysorw\",
\"value\" : \"2r0epq\",
\"from\" : \"xvxi2smff9\"
}
]}"
我得到的错误,这是一个无效的修补程序操作。
A client error (BadRequestException) occurred when calling the UpdateResource operation: Invalid patch operation specified. Must be 'add'|'remove'|'replace'
谢谢,那工作。 – jamborta
谁跟我一样陷入这个猎物,它是'patch-operations',http://docs.aws.amazon.com/cli/latest/reference/apigateway/update-resource.html –