Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Request

Route

POST /v2/apps/c462b988-8644-4bf6-83cb-32a12c3d1564/restage

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NiIsImVtYWlsIjoiZW1haWwtMjkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NTZ9.YCXi6Cwd8STWwL6g-HYu4dGpufJKXzdsrTtu2weE_cs
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/c462b988-8644-4bf6-83cb-32a12c3d1564/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NiIsImVtYWlsIjoiZW1haWwtMjkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NTZ9.YCXi6Cwd8STWwL6g-HYu4dGpufJKXzdsrTtu2weE_cs" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "c462b988-8644-4bf6-83cb-32a12c3d1564",
    "url": "/v2/apps/c462b988-8644-4bf6-83cb-32a12c3d1564",
    "created_at": "2015-11-03T00:54:16Z",
    "updated_at": "2015-11-03T00:54:16Z"
  },
  "entity": {
    "name": "name-2319",
    "production": false,
    "space_guid": "879e3af7-de9c-4313-96b5-46d8589d2fb1",
    "stack_guid": "9d26dede-5e3a-465c-acac-65e8b19deffb",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "caf0179d-bac4-41db-8361-19a855b40db6",
    "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-03T00:54:16Z",
    "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/c462b988-8644-4bf6-83cb-32a12c3d1564
X-VCAP-Request-ID: b8fcfa2f-1042-49e5-9611-aae741f89f24
Content-Length: 1158
X-Content-Type-Options: nosniff