Apps API

Restage an App

POST /v2/apps/:guid/restage

Request

Route

POST /v2/apps/83e7e4bf-443e-45ce-8f36-659c46809abb/restage

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1NyIsImVtYWlsIjoiZW1haWwtMjUxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDB9.1Td5LF3_cmexuuKHparnwwxYyHJ53b7BYdmlZyTeOP0
Host: example.org
Content-Type: application/json
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/83e7e4bf-443e-45ce-8f36-659c46809abb/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1NyIsImVtYWlsIjoiZW1haWwtMjUxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDB9.1Td5LF3_cmexuuKHparnwwxYyHJ53b7BYdmlZyTeOP0" \
	-H "Host: example.org" \
	-H "Content-Type: application/json" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "83e7e4bf-443e-45ce-8f36-659c46809abb",
    "url": "/v2/apps/83e7e4bf-443e-45ce-8f36-659c46809abb",
    "created_at": "2016-06-08T16:41:40Z",
    "updated_at": "2016-06-08T16:41:40Z"
  },
  "entity": {
    "name": "name-2047",
    "production": false,
    "space_guid": "b1787767-ca42-4fcf-989e-2530fe2987a5",
    "stack_guid": "00caa65b-55f4-4c72-8e61-011c20189462",
    "buildpack": null,
    "detected_buildpack": null,
    "detected_buildpack_guid": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "4de62557-7599-422e-93ab-49e6b6ede56b",
    "command": null,
    "console": false,
    "debug": null,
    "staging_task_id": null,
    "package_state": "PENDING",
    "health_check_http_endpoint": "",
    "health_check_type": "port",
    "health_check_timeout": null,
    "staging_failed_reason": null,
    "staging_failed_description": null,
    "diego": false,
    "docker_image": null,
    "docker_credentials": {
      "username": null,
      "password": null
    },
    "package_updated_at": "2016-06-08T16:41:40Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "ports": null
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/apps/83e7e4bf-443e-45ce-8f36-659c46809abb
X-VCAP-Request-ID: e9d5a598-33d9-4a6c-9e6b-fd36fed23f1f
Content-Length: 1158
X-Content-Type-Options: nosniff