Restage an App
POST /v2/apps/:guid/restage
Request
Route
POST /v2/apps/a283a588-a55b-4d7c-b1f5-b9ef7ee98fb2/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/a283a588-a55b-4d7c-b1f5-b9ef7ee98fb2/restage" -d '' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1OCIsImVtYWlsIjoiZW1haWwtMjA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTN9.Vb16Y2GsiAatM_H8uCDAXva7bXIXgy56zw72wAEETNU" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "a283a588-a55b-4d7c-b1f5-b9ef7ee98fb2",
"url": "/v2/apps/a283a588-a55b-4d7c-b1f5-b9ef7ee98fb2",
"created_at": "2015-05-21T01:03:13Z",
"updated_at": "2015-05-21T01:03:13Z"
},
"entity": {
"name": "name-1839",
"production": false,
"space_guid": "04920ffc-f0e2-4b33-bcca-19a0e9864133",
"stack_guid": "7057bf64-af5e-4268-8790-334e2a9f2806",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STARTED",
"version": "016d59cd-9e55-4074-9857-1c53d615da85",
"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-05-21T01:03:13Z",
"detected_start_command": "",
"enable_ssh": true
}
}
Headers