Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Stopping an App

PUT /v3/apps/:guid/stop

Request

Route

PUT /v3/apps/guid-6cd1aa5e-f3ea-4e9b-912d-db126c0a1919/stop

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYiLCJlbWFpbCI6ImVtYWlsLTVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NzExNjgyNH0.y-g_60N7SeEpXB3EcdPgiuJgtZCVxegOtvp180klP8U
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-6cd1aa5e-f3ea-4e9b-912d-db126c0a1919/stop" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYiLCJlbWFpbCI6ImVtYWlsLTVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NzExNjgyNH0.y-g_60N7SeEpXB3EcdPgiuJgtZCVxegOtvp180klP8U" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-6cd1aa5e-f3ea-4e9b-912d-db126c0a1919",
  "name": "original_name",
  "desired_state": "STOPPED",
  "total_desired_instances": 0,
  "created_at": "2015-11-03T00:53:44Z",
  "updated_at": "2015-11-03T00:53:44Z",
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-56",
      "stack": "name-57"
    }
  },
  "environment_variables": {

  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-6cd1aa5e-f3ea-4e9b-912d-db126c0a1919"
    },
    "space": {
      "href": "/v2/spaces/b6c80a53-b0d8-48fd-a80a-e5ea6feba3fe"
    },
    "processes": {
      "href": "/v3/apps/guid-6cd1aa5e-f3ea-4e9b-912d-db126c0a1919/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-6cd1aa5e-f3ea-4e9b-912d-db126c0a1919/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-6cd1aa5e-f3ea-4e9b-912d-db126c0a1919/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-c6ebd8ae-fe15-4c7b-86f1-1533ed0ab4f8"
    },
    "droplets": {
      "href": "/v3/apps/guid-6cd1aa5e-f3ea-4e9b-912d-db126c0a1919/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-6cd1aa5e-f3ea-4e9b-912d-db126c0a1919/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-6cd1aa5e-f3ea-4e9b-912d-db126c0a1919/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-6cd1aa5e-f3ea-4e9b-912d-db126c0a1919/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3cb60a15-c8bc-46bd-8732-7a3fe72f8c62
Content-Length: 1450
X-Content-Type-Options: nosniff