Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Stopping an App

PUT /v3/apps/:guid/stop

Request

Route

PUT /v3/apps/guid-e27d1a85-70fd-4628-844b-4096c0dd418a/stop

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MSIsImVtYWlsIjoiZW1haWwtMTM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDR9.k9TQbStvsuHbE84f23sSv2HmCAo5SXXNnzMPRqOni6c
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-e27d1a85-70fd-4628-844b-4096c0dd418a/stop" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MSIsImVtYWlsIjoiZW1haWwtMTM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDR9.k9TQbStvsuHbE84f23sSv2HmCAo5SXXNnzMPRqOni6c" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-e27d1a85-70fd-4628-844b-4096c0dd418a",
  "name": "original_name",
  "desired_state": "STOPPED",
  "total_desired_instances": 0,
  "buildpack": null,
  "created_at": "2015-09-30T23:30:44Z",
  "updated_at": "2015-09-30T23:30:44Z",
  "environment_variables": {

  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-e27d1a85-70fd-4628-844b-4096c0dd418a"
    },
    "space": {
      "href": "/v2/spaces/5df39981-8d7c-471a-80df-3d34dec8181b"
    },
    "processes": {
      "href": "/v3/apps/guid-e27d1a85-70fd-4628-844b-4096c0dd418a/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-e27d1a85-70fd-4628-844b-4096c0dd418a/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-e27d1a85-70fd-4628-844b-4096c0dd418a/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-56e740b3-a342-4ccd-b11f-2eee6c396225"
    },
    "droplets": {
      "href": "/v3/apps/guid-e27d1a85-70fd-4628-844b-4096c0dd418a/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-e27d1a85-70fd-4628-844b-4096c0dd418a/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-e27d1a85-70fd-4628-844b-4096c0dd418a/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-e27d1a85-70fd-4628-844b-4096c0dd418a/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4f051558-fa71-4800-a649-2007560e9cb5
Content-Length: 1349
X-Content-Type-Options: nosniff