user630702
user630702

Reputation: 3117

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

Upvotes: 3

Views: 926

Answers (1)

Marcin
Marcin

Reputation: 238139

For HTTP api you have to use apigatewayv2:

aws apigatewayv2 get-apis

Upvotes: 4

Related Questions