Restage an App
POST /v2/apps/:guid/restage
Request
Route
POST /v2/apps/5c840673-88f9-43fd-84f7-5caabc2a1b5b/restage
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the App
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/5c840673-88f9-43fd-84f7-5caabc2a1b5b/restage" -d '' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzOCIsImVtYWlsIjoiZW1haWwtMTU2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTB9.GVSuzUotDvQzlzFN47vInbPwv74KIRNZc1albIDiUes" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "5c840673-88f9-43fd-84f7-5caabc2a1b5b",
"url": "/v2/apps/5c840673-88f9-43fd-84f7-5caabc2a1b5b",
"created_at": "2015-06-04T00:05:10Z",
"updated_at": "2015-06-04T00:05:10Z"
},
"entity": {
"name": "name-1581",
"production": false,
"space_guid": "46bde79e-8d1f-469d-b789-0ea40c45eac7",
"stack_guid": "35d7d19e-7d77-4837-8d94-93d2c559a14a",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STARTED",
"version": "4745730c-924d-4ac5-985b-3d6415a1d052",
"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,
"diego": false,
"docker_image": null,
"package_updated_at": "2015-06-04T00:05:10Z",
"detected_start_command": "",
"enable_ssh": true,
"docker_credentials_json": {
"redacted_message": "[PRIVATE DATA HIDDEN]"
}
}
}
Headers