aws-apigateway
TLDR
List all REST APIs
SYNOPSIS
aws apigateway command [options]
DESCRIPTION
aws apigateway manages Amazon API Gateway REST APIs through the AWS CLI. It creates and configures APIs that act as front doors for applications to access backend services, Lambda functions, or other AWS services.
The typical workflow involves creating an API with create-rest-api, defining resources (URL paths) with create-resource, adding HTTP methods with put-method, configuring backend integrations with put-integration, and deploying to a stage with create-deployment.
Endpoint types control how the API is accessed: EDGE for CloudFront distribution (global), REGIONAL for same-region access, and PRIVATE for VPC-only access.
API keys and usage plans provide access control and throttling. Stages represent different environments (dev, staging, prod) with independent configurations.
PARAMETERS
create-rest-api
Create a new REST APIget-rest-apis
List all REST APIs in the accountget-rest-api
Get details of a specific REST APIdelete-rest-api
Delete a REST APIcreate-resource
Create a resource (URL path segment) in an APIget-resources
List resources in an APIput-method
Add an HTTP method to a resourceput-integration
Set up backend integration for a methodcreate-deployment
Deploy an API to a stageget-stages
List deployment stagesget-api-keys
List API keyscreate-api-key
Create a new API key--rest-api-id id
The identifier of the REST API--name name
Name for the API or resource--description text
Description of the API--endpoint-configuration config
Endpoint type: EDGE, REGIONAL, or PRIVATE--stage-name name
Deployment stage name (dev, staging, prod)
CAVEATS
Requires AWS credentials configured via aws configure or environment variables. REST API changes require deployment to take effect. API Gateway has quotas on resources, methods, and request rates. Private APIs require VPC endpoint configuration.
HISTORY
Amazon API Gateway was launched in July 2015 as a fully managed service for creating, publishing, and managing APIs. The AWS CLI commands provide programmatic access to API Gateway features. REST APIs were the original offering, with HTTP APIs (simpler, lower cost) and WebSocket APIs added later.
SEE ALSO
aws(1), aws-lambda(1), aws-iam(1)


