如何修复API网关的无效部署内容

时间:2019-05-11 20:36:16

标签: boto3

我有一个简单的脚本,可以使用提供的restApiId创建部署。

但是,会抛出以下错误:

botocore.errorfactory.BadRequestException:调用CreateDeployment操作时发生错误(BadRequestException):指定了无效的部署内容。CreateDeploymentInput不应为null。

这是代码:

client = boto3.client('apigateway')
response  = client.get_rest_apis()

for restApi in response['items']:
    print(restApi['id'])
    client.create_deployment(restApiId=restApi['id'])

我在这里想念什么?

0 个答案:

没有答案