Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS CLI get APIGateway returns only REST API's

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
        }
    ]
}
like image 415
user630702 Avatar asked Feb 23 '26 06:02

user630702


1 Answers

For HTTP api you have to use apigatewayv2:

aws apigatewayv2 get-apis
like image 108
Marcin Avatar answered Feb 24 '26 20:02

Marcin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!