Introduce a "reset to empty" API endpoint
See original GitHub issueAs per my comment here: https://github.com/projectkudu/kudu/issues/2103#issuecomment-287624520
Basically, I’d really like an endpoint that I could call via the API that would reset the filesystem of the app to a new-state. The reasoning behind this is a bit layered as I’ve been encountering several snags in trying to make my deployments consistent. Much of it stemming from the (lack of) speed during filesystem access.
The premise is simple: This endpoint would take a POST and would quickly reset the wwwroot
directory to a state like as if I had just created a fresh new App Service instance.
Issue Analytics
- State:
- Created 7 years ago
- Comments:20 (10 by maintainers)
Top Results From Across the Web
REST API design for a "reset to defaults" operation
Let's discuss your mentioned options first: 1: DELETE does not necessarily need to delete or remove the state contained in the resource ...
Read more >RESTful API design. What should I return if there are no ...
The answer provided by nirth should be the best, in a true REST scenario. The body response should be empty and the http...
Read more >Empty an Amazon Neptune DB cluster using the fast reset ...
To delete all data from a Neptune DB cluster using the API This step is intended to help prevent anyone from accidentally resetting...
Read more >Connection Reset when calling outbound REST API
I have an outbound REST API endpoint call in a Scheduled Job Script. At first, I was receiving the HTTP timeout but I...
Read more >Web API implementation - Best Practices
Learn about best practices for implementing a web API and publishing it to make it available to client applications.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@davidebbo - Brilliant, this appears to have worked! I commented at Stack Overflow, but just in case anyone lands here via search as well:
This is my build that successfully pushed code up to Azure.
Here are links to my project showing how I invoked everything:
Other parts of that shell script are sure to be interesting to some as well. And of course, it’s easily adapted to PowerShell if that’s your preference.
I agree that your question is perfectly reasonable.