This repository was archived by the owner on Jun 2, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
experimental_resources/app_restart Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ Example Request
66
77```shell
88curl "https://api.example.org/v3/apps/[guid]/actions/restart" \
9- -X POST \
10- -H "Authorization: bearer [token]"
9+ -X POST \
10+ -H "Authorization: bearer [token]"
1111```
1212
1313```
@@ -21,6 +21,13 @@ Content-Type: application/json
2121<%= yield_content :app_with_state, 'STARTED' %>
2222```
2323
24+ This endpoint will synchronously stop and start an application.
25+ Unlike the [start](#start-an-app) and [stop](#stop-an-app) actions,
26+ this endpoint will error if the app is not successfully stopped
27+ in the runtime.
28+
29+ For restarting applications without downtime, see the [deployments](#deployments) resource.
30+
2431#### Definition
2532`POST /v3/apps/:guid/actions/restart`
2633
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ includes:
8080 - resources/apps/ssh_enabled
8181 - resources/apps/start
8282 - resources/apps/stop
83+ - resources/apps/restart
8384 - resources/apps/update_environment_variables
8485 - resources/app_features/header
8586 - resources/app_features/object
@@ -342,8 +343,6 @@ includes:
342343 - resources/users/update
343344 - resources/users/delete
344345 - experimental_resources/header
345- - experimental_resources/app_restart/header
346- - experimental_resources/app_restart/create
347346 - experimental_resources/revisions/header
348347 - experimental_resources/revisions/object
349348 - experimental_resources/revisions/get
You can’t perform that action at this time.
0 commit comments