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

Updated:   |  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 Buy Me A Coffee



Comments


Add a Comment


Please enter fb248e in the box below so that we can be sure you are a human.