Home > Mobile >  AWS CLI get APIGateway returns only REST API's
AWS CLI get APIGateway returns only REST API's

Time:11-03

The command aws apigateway get-rest-apis returns only REST API's. As you can see in the following screenshot I have 3 API's. But the command returns only one API (the REST protocol API).

How to get all 3 API's?

enter image description here

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
        }
    ]
}

CodePudding user response:

For HTTP api you have to use apigatewayv2:

aws apigatewayv2 get-apis
  • Related