Restage an App
POST /v2/apps/:guid/restage
Request
Route
POST /v2/apps/6ae9cd74-6790-4a5e-9340-5fc25d47f155/restage
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the App
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/6ae9cd74-6790-4a5e-9340-5fc25d47f155/restage" -d '' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwOCIsImVtYWlsIjoiZW1haWwtNzNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0ODAzODk0OH0.8K4oQlgcFz5VoKYdC1Y7qWwJAyICfQdJmnahfSJ9i88" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "6ae9cd74-6790-4a5e-9340-5fc25d47f155",
"url": "/v2/apps/6ae9cd74-6790-4a5e-9340-5fc25d47f155",
"created_at": "2015-11-13T17:02:28Z",
"updated_at": "2015-11-13T17:02:28Z"
},
"entity": {
"name": "name-272",
"production": false,
"space_guid": "bbaf40c6-6eca-4400-92b7-03bff43995d2",
"stack_guid": "04e4d490-a193-46f9-915e-1bf23e905d27",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STARTED",
"version": "e8d06ec9-0d04-46b1-95bd-435f975c16c3",
"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-13T17:02:28Z",
"detected_start_command": "",
"enable_ssh": true,
"docker_credentials_json": {
"redacted_message": "[PRIVATE DATA HIDDEN]"
},
"ports": null
}
}
Headers