Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Stopping an App

PUT /v3/apps/:guid/stop

Request

Route

PUT /v3/apps/guid-b62a2f2c-d00c-48ae-b909-835e138dd782/stop

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwOCIsImVtYWlsIjoiZW1haWwtMTQwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMDZ9.DuB3cnW_3Ge04j0HQQj25z3-OLgqyIyf9uH_ilbaEz4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-b62a2f2c-d00c-48ae-b909-835e138dd782/stop" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwOCIsImVtYWlsIjoiZW1haWwtMTQwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMDZ9.DuB3cnW_3Ge04j0HQQj25z3-OLgqyIyf9uH_ilbaEz4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-b62a2f2c-d00c-48ae-b909-835e138dd782",
  "name": "original_name",
  "desired_state": "STOPPED",
  "total_desired_instances": 0,
  "buildpack": null,
  "created_at": "2015-10-13T17:31:46Z",
  "updated_at": "2015-10-13T17:31:46Z",
  "environment_variables": {

  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-b62a2f2c-d00c-48ae-b909-835e138dd782"
    },
    "space": {
      "href": "/v2/spaces/f2414c07-afb5-4ad5-9356-265f4bda7617"
    },
    "processes": {
      "href": "/v3/apps/guid-b62a2f2c-d00c-48ae-b909-835e138dd782/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-b62a2f2c-d00c-48ae-b909-835e138dd782/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-b62a2f2c-d00c-48ae-b909-835e138dd782/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-34a5969f-9a72-4694-be1f-5bb9be91929d"
    },
    "droplets": {
      "href": "/v3/apps/guid-b62a2f2c-d00c-48ae-b909-835e138dd782/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-b62a2f2c-d00c-48ae-b909-835e138dd782/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-b62a2f2c-d00c-48ae-b909-835e138dd782/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-b62a2f2c-d00c-48ae-b909-835e138dd782/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 74f6848c-f636-4dd6-aca1-c87a1969795a
Content-Length: 1349
X-Content-Type-Options: nosniff