Restage an App
POST /v2/apps/:guid/restage
Request
Route
POST /v2/apps/1db4f3c2-d9c9-49da-b8ec-07958cc19cdd/restage
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the App
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/1db4f3c2-d9c9-49da-b8ec-07958cc19cdd/restage" -d '' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgwIiwiZW1haWwiOiJlbWFpbC00OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxOTU4MzkzfQ.8Ck8BY-rrl-xvfQO4I6ADZFShR44ikNqd9C8BR9rilI" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "1db4f3c2-d9c9-49da-b8ec-07958cc19cdd",
"url": "/v2/apps/1db4f3c2-d9c9-49da-b8ec-07958cc19cdd",
"created_at": "2016-04-22T19:33:13Z",
"updated_at": "2016-04-22T19:33:13Z"
},
"entity": {
"name": "name-157",
"production": false,
"space_guid": "3e9c1d4c-ed98-4b72-9fa9-4dad4c4457f5",
"stack_guid": "e59d7add-bb20-4a59-ab67-8f17bc3338e2",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STARTED",
"version": "661b4965-eebf-4783-afc2-8ed9c5b1ed39",
"command": null,
"console": false,
"debug": null,
"staging_task_id": null,
"package_state": "PENDING",
"health_check_type": "port",
"health_check_timeout": null,
"staging_failed_reason": null,
"staging_failed_description": null,
"diego": false,
"docker_image": null,
"package_updated_at": "2016-04-22T19:33:13Z",
"detected_start_command": "",
"enable_ssh": true,
"docker_credentials_json": {
"redacted_message": "[PRIVATE DATA HIDDEN]"
},
"ports": null
}
}
Headers