Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Stopping an App

PUT /v3/apps/:guid/stop

Request

Route

PUT /v3/apps/guid-73c46bc3-e141-45d5-b209-fc6cd39d772d/stop

Body

Name Description Default Valid Values Example Values
{

}

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-73c46bc3-e141-45d5-b209-fc6cd39d772d/stop" -d '{

}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwMCIsImVtYWlsIjoiZW1haWwtMTIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNDB9.lYNrSPj9pCmZWhXNXZgHEvC9gfnIEeoOrHXAdgRF8mM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-73c46bc3-e141-45d5-b209-fc6cd39d772d",
  "name": "original_name",
  "desired_state": "STOPPED",
  "total_desired_instances": 0,
  "created_at": "2015-04-15T00:55:40Z",
  "updated_at": "2015-04-15T00:55:40Z",
  "environment_variables": {

  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-73c46bc3-e141-45d5-b209-fc6cd39d772d"
    },
    "processes": {
      "href": "/v3/apps/guid-73c46bc3-e141-45d5-b209-fc6cd39d772d/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-73c46bc3-e141-45d5-b209-fc6cd39d772d/packages"
    },
    "space": {
      "href": "/v2/spaces/eeff7a79-d188-49eb-9081-f3d183d02eda"
    },
    "desired_droplet": {
      "href": "/v3/droplets/guid-5245b561-64ac-4a68-8571-ecf0078fc29e"
    },
    "start": {
      "href": "/v3/apps/guid-73c46bc3-e141-45d5-b209-fc6cd39d772d/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-73c46bc3-e141-45d5-b209-fc6cd39d772d/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-73c46bc3-e141-45d5-b209-fc6cd39d772d/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c6040d0c-1348-4a72-94ef-66c0710d3fd5
Content-Length: 1139
X-Content-Type-Options: nosniff