Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Stopping an App

PUT /v3/apps/:guid/stop

Request

Route

PUT /v3/apps/guid-5d0e50b7-5101-4e06-b8a3-84c710a95690/stop

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-5d0e50b7-5101-4e06-b8a3-84c710a95690/stop" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2MSIsImVtYWlsIjoiZW1haWwtMzI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NTR9.wWMRC42mbJmDfwGD5wKHrQp7xch9YYTFPuVRxU0RVcc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-5d0e50b7-5101-4e06-b8a3-84c710a95690",
  "name": "original_name",
  "desired_state": "STOPPED",
  "total_desired_instances": 0,
  "buildpack": null,
  "created_at": "2015-09-11T18:39:14Z",
  "updated_at": "2015-09-11T18:39:14Z",
  "environment_variables": {

  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-5d0e50b7-5101-4e06-b8a3-84c710a95690"
    },
    "space": {
      "href": "/v2/spaces/6f696721-ffa6-47e6-b21d-dcc392e4bec3"
    },
    "processes": {
      "href": "/v3/apps/guid-5d0e50b7-5101-4e06-b8a3-84c710a95690/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-5d0e50b7-5101-4e06-b8a3-84c710a95690/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-5d0e50b7-5101-4e06-b8a3-84c710a95690/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-5f9f1c5b-21ab-4f16-ad8f-fed0c210e6d9"
    },
    "droplets": {
      "href": "/v3/apps/guid-5d0e50b7-5101-4e06-b8a3-84c710a95690/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-5d0e50b7-5101-4e06-b8a3-84c710a95690/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-5d0e50b7-5101-4e06-b8a3-84c710a95690/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-5d0e50b7-5101-4e06-b8a3-84c710a95690/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6dcaa735-4e6a-4e16-8124-ff7ec9efa594
Content-Length: 1350
X-Content-Type-Options: nosniff