Restage an App
POST /v2/apps/:guid/restage
Request
Route
POST /v2/apps/3cb3a68c-f5be-40d1-a892-39f3c0bd4cc7/restage
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the App
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/3cb3a68c-f5be-40d1-a892-39f3c0bd4cc7/restage" -d '' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwNyIsImVtYWlsIjoiZW1haWwtMjk3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMTZ9.Hw-Hxgk7cwyeXsuD6PRtO_VrFgsJN5ysuutTLcmAJP8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "3cb3a68c-f5be-40d1-a892-39f3c0bd4cc7",
"url": "/v2/apps/3cb3a68c-f5be-40d1-a892-39f3c0bd4cc7",
"created_at": "2015-08-06T00:36:56Z",
"updated_at": "2015-08-06T00:36:56Z"
},
"entity": {
"name": "name-2318",
"production": false,
"space_guid": "89f947c5-166f-4fef-837d-dbd677c3cdf9",
"stack_guid": "a3f83d20-425c-4b8d-a53b-0fb5a7e5ce4f",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STARTED",
"version": "93dff60a-3406-4416-b3e6-a361f9e28791",
"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": "2015-08-06T00:36:56Z",
"detected_start_command": "",
"enable_ssh": true,
"docker_credentials_json": {
"redacted_message": "[PRIVATE DATA HIDDEN]"
}
}
}
Headers