Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the ID of a API from AWS API gateway

I have created an API in Amazon API Gateway using the web browser. Now How can I get the ID of the API that I have just created???

like image 580
LynAs Avatar asked Dec 23 '15 10:12

LynAs


People also ask

How do I get my AWS API id?

https://console.aws.amazon.com/apigateway/home?region={region}#/apis/{api-id}/... Show activity on this post. To add another answer, on the AWS console, access the "API Gateway", and look for your API, it is shown right there in the list.

What is resource id in API gateway?

Your rest-api-id is the identifier before 'execute-api' in your endpoint URL. In your example URL: https://abc123.execute-api.us-east-1.amazonaws.com/MyStage/ The rest-api-id is abc123.


1 Answers

It can be found using the following command

aws apigateway get-rest-apis

needless to say you need to setup aws cli

like image 160
LynAs Avatar answered Sep 18 '22 21:09

LynAs