AWS CLI 仅获取 API 网关 returns REST API

AWS CLI get APIGateway returns only REST API's

命令aws apigateway get-rest-apis returns 仅REST API's。正如您在下面的屏幕截图中看到的,我有 3 API 个。但是命令returns只有一个API(REST协议API).

如何获得全部 3 个 API?

aws apigateway get-rest-apis

{
    "items": [
        {
            "id": "xxxxxxxx",
            "name": "zabbixPy-API",
            "description": "Created by AWS Lambda",
            "createdDate": "2021-10-31T10:16:23+00:00",
            "apiKeySource": "HEADER",
            "endpointConfiguration": {
                "types": [
                    "REGIONAL"
                ]
            },
            "disableExecuteApiEndpoint": false
        }
    ]
}

对于 HTTP api 你必须使用 apigatewayv2:

aws apigatewayv2 get-apis