Is it possible to delete a API in AWS API Gateway

+3 votes
I wish to get IAM Credentials from an Identity Pool using Cognito user/pass authentication from the command line:

The problem is, I can't find anything in the AWS-CLI that does this in one-step or multiple steps of bash code. Do we have CLI tools for it?

Can we write a quick script to get IAM Credentials to plugin for testing an API.
Mar 27, 2018 in Cloud Computing by hemant
• 5,790 points
4,805 views

3 answers to this question.

+3 votes

Yes, it is possible to delete an API in AWS:

aws apigateway delete-rest-api --rest-api-id 1234123412

Refer this:

https://docs.aws.amazon.com/cli/latest/reference/apigateway/delete-rest-api.html

answered Mar 27, 2018 by brat_1
• 7,200 points
+1 vote

 Yes it is possible and deleting a model may cause part or all of the corresponding API to become unusable by API callers. Deleting a model cannot be undone.

The entire process is described in brief
https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-delete-model.html

answered Sep 4, 2018 by eatcodesleeprepeat
• 4,710 points
0 votes

Here's a script to delete all the rest APIs:

for rest_api_id in $(aws apigateway get-rest-apis --region us-east-1 --query 'items[*].id' --output text); do aws apigateway delete-rest-api --region us-east-1 --rest-api-id $rest_api_id ; done
answered Oct 11, 2018 by findingbugs
• 4,780 points

Related Questions In Cloud Computing

+1 vote
3 answers

AWS EC2: Is it possible to edit httpd.conf file in

It would be prompting you a alert, ...READ MORE

answered Aug 17, 2018 in Cloud Computing by Priyaj
• 58,020 points
2,897 views
+2 votes
2 answers

Is there a way to add cache control in AWS S3?

use of  current upstream master branch will ...READ MORE

answered Apr 10, 2018 in Cloud Computing by hemant
• 5,790 points
8,682 views
0 votes
1 answer

Is it possible to use VPC to have access between two AWS Regions

Good question this. Currently this feature is ...READ MORE

answered Apr 18, 2018 in Cloud Computing by code_ninja
• 6,300 points
833 views
0 votes
1 answer

AWS: What is an API Gateway in AWS?

Amazon API Gateway is a fully managed ...READ MORE

answered Jul 26, 2018 in Cloud Computing by Meci Matt
• 9,460 points
1,357 views
+3 votes
3 answers

Is there a way to install apache drill on an EMR cluster on AWS that is already Running?

It looks to be trying to get ...READ MORE

answered Oct 11, 2018 in Cloud Computing by findingbugs
• 4,780 points
2,411 views
+1 vote
1 answer

Is it possible to get an ec2 pricing programmatically?

Yes absolutely. You may get AWS pricing programmatically ...READ MORE

answered Apr 10, 2018 in Cloud Computing by code_ninja
• 6,300 points
1,997 views
0 votes
1 answer

Is there a way to find out the number of objects stored in an S3 bucket?

Frankly, that is not possible. This is ...READ MORE

answered Apr 17, 2018 in Cloud Computing by code_ninja
• 6,300 points
913 views
0 votes
1 answer

Is there a way to transfer files between AWS s3 and ec2

The answer is a definite yes yes. ...READ MORE

answered Apr 17, 2018 in Cloud Computing by brat_1
• 7,200 points
906 views
0 votes
3 answers

Is it possible to redirect a domain to Amazon EC2?

Create an Elastic IP on the AWS ...READ MORE

answered Nov 30, 2018 in Cloud Computing by Abhinav
2,582 views
0 votes
1 answer

Is there a way to test codes that are written against AWS API?

Please note that you should not integrate ...READ MORE

answered Apr 17, 2018 in Cloud Computing by brat_1
• 7,200 points
570 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP