Restage an App
POST /v2/apps/:guid/restage
Request
Route
POST /v2/apps/513631f9-ad4c-4adc-9127-3ab67c2d6ae5/restage
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the App
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/513631f9-ad4c-4adc-9127-3ab67c2d6ae5/restage" -d '' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMiIsImVtYWlsIjoiZW1haWwtMjI0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1MzF9.rkOUKNOprX_I9OADtGZ9tnUowPib48iA1cOOMi9kKUw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "513631f9-ad4c-4adc-9127-3ab67c2d6ae5",
"url": "/v2/apps/513631f9-ad4c-4adc-9127-3ab67c2d6ae5",
"created_at": "2015-11-30T23:38:51Z",
"updated_at": "2015-11-30T23:38:51Z"
},
"entity": {
"name": "name-2249",
"production": false,
"space_guid": "d1b95611-3062-4f36-b036-9ebfa073ca03",
"stack_guid": "8921449f-d02b-4fa2-92d6-ad321ba6b528",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STARTED",
"version": "ea8b53ce-7a13-41a0-8475-1a8f18560b6e",
"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-11-30T23:38:51Z",
"detected_start_command": "",
"enable_ssh": true,
"docker_credentials_json": {
"redacted_message": "[PRIVATE DATA HIDDEN]"
},
"ports": null
}
}
Headers