Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Stopping an App

PUT /v3/apps/:guid/stop

Request

Route

PUT /v3/apps/guid-5af1c1b6-f099-494f-8b8f-1384d4b38a33/stop

Body

Name Description Default Valid Values Example Values
{

}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2OCIsImVtYWlsIjoiZW1haWwtMjE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTR9.m6dX7EMIi_O4WZCkFlvGlOeruz7xXFXofWv_ZeQ-LZs
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-5af1c1b6-f099-494f-8b8f-1384d4b38a33/stop" -d '{

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

Response

Status

200 OK

Body

{
  "guid": "guid-5af1c1b6-f099-494f-8b8f-1384d4b38a33",
  "name": "original_name",
  "desired_state": "STOPPED",
  "total_desired_instances": 0,
  "created_at": "2015-05-21T01:03:14Z",
  "updated_at": "2015-05-21T01:03:15Z",
  "environment_variables": {

  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-5af1c1b6-f099-494f-8b8f-1384d4b38a33"
    },
    "processes": {
      "href": "/v3/apps/guid-5af1c1b6-f099-494f-8b8f-1384d4b38a33/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-5af1c1b6-f099-494f-8b8f-1384d4b38a33/packages"
    },
    "space": {
      "href": "/v2/spaces/5f26a3d7-1da6-4452-a42e-1e011e34cc24"
    },
    "desired_droplet": {
      "href": "/v3/droplets/guid-e24c49bc-6d6d-4657-bee2-aaf7423c5ea6"
    },
    "start": {
      "href": "/v3/apps/guid-5af1c1b6-f099-494f-8b8f-1384d4b38a33/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-5af1c1b6-f099-494f-8b8f-1384d4b38a33/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-5af1c1b6-f099-494f-8b8f-1384d4b38a33/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8953a78c-ca4f-4960-b46c-46f2a70fce3f
Content-Length: 1139
X-Content-Type-Options: nosniff