Restage an App
POST /v2/apps/:guid/restage
Request
Route
POST /v2/apps/7a0367e5-d03c-4f74-98e7-3d68d3eee23d/restage
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the App
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/7a0367e5-d03c-4f74-98e7-3d68d3eee23d/restage" -d '' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNyIsImVtYWlsIjoiZW1haWwtODZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MDUwNjY0MX0.TpkB1np3e9C2zWWXJpiolsQSZsfQth94MJm1nd0nxTY" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "7a0367e5-d03c-4f74-98e7-3d68d3eee23d",
"url": "/v2/apps/7a0367e5-d03c-4f74-98e7-3d68d3eee23d",
"created_at": "2016-04-06T00:17:21Z",
"updated_at": "2016-04-06T00:17:21Z"
},
"entity": {
"name": "name-299",
"production": false,
"space_guid": "e9858339-4cfe-4893-b743-627211205ebd",
"stack_guid": "aabcc2ef-fde4-4b5e-9bff-1911f8863293",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STARTED",
"version": "5b668868-400f-4200-9df3-a936471794e8",
"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": "2016-04-06T00:17:21Z",
"detected_start_command": "",
"enable_ssh": true,
"docker_credentials_json": {
"redacted_message": "[PRIVATE DATA HIDDEN]"
},
"ports": null
}
}
Headers