Bootstrap FreeKB - Amazon Web Services (AWS) - List API Gateway REST APIs using the AWS CLI
Amazon Web Services (AWS) - List API Gateway REST 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
  • REST API - The aws apigateway get-rest-apis command can be used to list your API Gateway REST APIs (this article)

The aws apigateway get-rest-apis command can be used to list your API Gateway REST APIs.

]$ aws apigateway get-rest-apis
{
    "items": [
        {
            "apiKeySource": "HEADER",
            "name": "sam-app",
            "tags": {
                "aws:cloudformation:stack-id": "arn:aws:cloudformation:us-east-1:123456789012:stack/sam-app/0882e400-842b-11ee-9053-0e798d5724d7",
                "aws:cloudformation:stack-name": "sam-app",
                "aws:cloudformation:logical-id": "ServerlessRestApi"
            },
            "endpointConfiguration": {
                "types": [
                    "EDGE"
                ]
            },
            "version": "1.0",
            "createdDate": 1700103122,
            "id": "zulgntw90l"
        }
    ]
}

 




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 2e4154 in the box below so that we can be sure you are a human.