AWS APIゲートウェイのバイナリサポートオプションを設定および更新しようとしています。私は問題なしでWeb UIを通じてこれを行うことができますが、私はこれを脚本にしたいと思います。うまくGET-残り-APIコマンドを発行できる http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-rest-api.html http://docs.aws.amazon.com/cli/latest/reference/apigateway/update-rest-api.htmlaws apigateway binaryMediaTypesの更新
:
C:\> aws apigateway get-rest-api --rest-api-id [ID]
{
"id": "[ID]",
"createdDate": 1490723884,
"name": "testbinarymediatypes"
}
しかしbinaryMediaTypesを更新しよう:
CLIコマンドリファレンスページを使用PS C:\> aws apigateway update-rest-api --rest-api-id [ID] --patch-operations op=add,path=binaryMediaTypes,value='image/jpg'
UpdateRestApi 操作を呼び出すときにエラーが(BadRequestException)を発生しました:無効なパッチパスbinaryMediaTypes
この行うことができますか私は、Web UIの種類を毎回追加する手動で立ち往生していますか?
ありがとう、私の問題を解決する! – SCNessen