Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Stopping an App

PUT /v3/apps/:guid/stop

Request

Route

PUT /v3/apps/guid-67b738b4-4b6e-4dfe-b3fc-09cb7c41dbc2/stop

Body

Name Description Default Valid Values Example Values
{

}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MyIsImVtYWlsIjoiZW1haWwtMTYwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTF9.wj8e4nqN2YfIzlNF70uILAT0fqrGpC7D39WlnB-EwCk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-67b738b4-4b6e-4dfe-b3fc-09cb7c41dbc2/stop" -d '{

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

Response

Status

200 OK

Body

{
  "guid": "guid-67b738b4-4b6e-4dfe-b3fc-09cb7c41dbc2",
  "name": "original_name",
  "desired_state": "STOPPED",
  "total_desired_instances": 0,
  "created_at": "2015-06-04T00:05:11Z",
  "updated_at": "2015-06-04T00:05:11Z",
  "environment_variables": {

  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-67b738b4-4b6e-4dfe-b3fc-09cb7c41dbc2"
    },
    "processes": {
      "href": "/v3/apps/guid-67b738b4-4b6e-4dfe-b3fc-09cb7c41dbc2/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-67b738b4-4b6e-4dfe-b3fc-09cb7c41dbc2/packages"
    },
    "space": {
      "href": "/v2/spaces/18d82050-90cd-4d71-8421-8063afa8f2ce"
    },
    "desired_droplet": {
      "href": "/v3/droplets/guid-6f2099a5-b51d-4831-9c3e-057b5216e853"
    },
    "start": {
      "href": "/v3/apps/guid-67b738b4-4b6e-4dfe-b3fc-09cb7c41dbc2/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-67b738b4-4b6e-4dfe-b3fc-09cb7c41dbc2/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-67b738b4-4b6e-4dfe-b3fc-09cb7c41dbc2/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c7ee1b3e-4c88-4ff6-8806-95431e5ef55a
Content-Length: 1139
X-Content-Type-Options: nosniff