Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Request

Route

POST /v2/apps/6fafcfcb-5b5f-44c6-bcc8-6b69242ebc07/restage

Parameters

Name Description Valid Values Example Values
guid The guid of the App

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5MyIsImVtYWlsIjoiZW1haWwtMjAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2ODF9.uPZXr-ij8zv9J-8nsOmS0dUTYxyZnPFtW2f4kllIpuM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/6fafcfcb-5b5f-44c6-bcc8-6b69242ebc07/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5MyIsImVtYWlsIjoiZW1haWwtMjAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2ODF9.uPZXr-ij8zv9J-8nsOmS0dUTYxyZnPFtW2f4kllIpuM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "6fafcfcb-5b5f-44c6-bcc8-6b69242ebc07",
    "url": "/v2/apps/6fafcfcb-5b5f-44c6-bcc8-6b69242ebc07",
    "created_at": "2016-03-17T21:41:21Z",
    "updated_at": "2016-03-17T21:41:21Z"
  },
  "entity": {
    "name": "name-1115",
    "production": false,
    "space_guid": "1a8c6198-9b9e-4dad-aab2-b4da915f221f",
    "stack_guid": "2757e476-84a7-4e6a-8897-96dc0dbc69b1",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "d1756d9e-3b6a-42cf-9570-16e97394b938",
    "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-03-17T21:41:21Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "ports": null
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/apps/6fafcfcb-5b5f-44c6-bcc8-6b69242ebc07
X-VCAP-Request-ID: 
Content-Length: 1158
X-Content-Type-Options: nosniff