【问题标题】:how to get deployment-id of api in aws apigateway from console?如何从控制台获取 aws apigateway 中 api 的部署 ID?
【发布时间】:2018-10-26 22:25:18
【问题描述】:

您好,我正在尝试 aws apigateway create-stage 命令,我需要部署 ID 来创建新阶段,因为它是 [必需] 选项。

我在控制台上找不到部署 ID。

我已经从控制台创建了 2 个阶段(来自 Actions--> DeployApi)。 在哪里可以找到部署 ID? 它在控制台上可用吗?

请帮忙。

【问题讨论】:

    标签: amazon-web-services aws-api-gateway


    【解决方案1】:

    您应该能够在 cli 中使用 get-deployments 方法查看部署 ID。

    aws apigateway get-deployments --rest-api-id 1234123412

    在输出中,id 的值为deployment-id

    AWS CLI Docs

    【讨论】:

    • 我猜在控制台上找不到depolyment-id,谢谢回复。当我使用这个命令时,我得到了一个对象数组(例如 { id:"xxx", createdDate:1539178484})。我们可以在控制台上看到所有这些部署吗?
    • 我更新了我的回复以更具体,抱歉造成混淆。 id 实际上是 deployment-id。要查看有关特定部署的更多详细信息,请aws apigateway get-deployment --rest-api-id 1234123412 --deployment-id ztt4m2
    猜你喜欢
    • 2022-07-28
    • 1970-01-01
    • 2020-02-15
    • 2017-10-10
    • 1970-01-01
    • 2019-06-25
    • 2021-08-14
    • 1970-01-01
    相关资源
    最近更新 更多