Amazon Web Services (AWS) - List API Gateway HTTP APIs using the AWS CLI

by
Jeremy Canfield |
Updated: November 06 2023
| Amazon Web Services (AWS) articles
This assumes you have already configured the aws command line tool. If not, check out my article on Getting Started with the AWS CLI.
There are different types of API Gateway APIS, such as.
- HTTP API - The aws apigatewayv2 get-apis command can be used to list your API Gateway HTTP APIs (this article)
- REST API - The aws apigateway get-rest-apis command can be used to list your API Gateway REST APIs.
The aws apigatewayv2 get-apis command can be used to list your API Gateway HTTP APIs.
~]$ aws apigatewayv2 get-apis
{
"Items": [
{
"Name": "foo",
"Tags": {},
"ProtocolType": "HTTP",
"RouteSelectionExpression": "$request.method $request.path",
"ApiId": "abcdefg123",
"ApiEndpoint": "https://abcdefg123.execute-api.us-east-1.amazonaws.com",
"ApiKeySelectionExpression": "$request.header.x-api-key",
"CreatedDate": "2023-12-06T02:12:32Z",
"DisableExecuteApiEndpoint": false
}
]
}
Did you find this article helpful?
If so, consider buying me a coffee over at