CmdID / aws / aws apigateway
aws apigateway get-rest-api
Lists the RestApi resource in the collection. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To get information about an API
The following get-rest-api example gets information about the specified REST API.
aws apigateway get-rest-api --rest-api-id 1234123412Identify--rest-api-idThe string identifier of the associated RestApi.Its output
{
"name": "myAPI",
"id": "o1y243m4f5",
"createdDate": 1453416433
}For more information, see API Gateway REST APIs in the Amazon API Gateway Developer Guide.
Options
--rest-api-idThe string identifier of the associated RestApi.