Restage an App
POST /v2/apps/:guid/restage
Request
Route
POST /v2/apps/a8509cab-f874-4ffb-9d8e-ad81c0792293/restage
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the App
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/a8509cab-f874-4ffb-9d8e-ad81c0792293/restage" -d '' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4NyIsImVtYWlsIjoiZW1haWwtMTIwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1MzR9.tULqi_bwR5tt6udhpdZYCGxdMHnsrxbymU5hzSRyZms" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "a8509cab-f874-4ffb-9d8e-ad81c0792293",
"url": "/v2/apps/a8509cab-f874-4ffb-9d8e-ad81c0792293",
"created_at": "2015-09-11T18:38:54Z",
"updated_at": "2015-09-11T18:38:54Z"
},
"entity": {
"name": "name-611",
"production": false,
"space_guid": "12754df9-5757-4488-9319-5fad40faf829",
"stack_guid": "6614beaa-422b-4508-aa5b-f780ad81ebeb",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STARTED",
"version": "e88d13d7-c2f6-4379-8a6d-dbce31840b87",
"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-09-11T18:38:54Z",
"detected_start_command": "",
"enable_ssh": true,
"docker_credentials_json": {
"redacted_message": "[PRIVATE DATA HIDDEN]"
}
}
}
Headers