Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Stopping an App

PUT /v3/apps/:guid/stop

Request

Route

PUT /v3/apps/guid-c07c6fd7-b478-461a-95fc-55d02004806f/stop

Body

Name Description Default Valid Values Example Values
{

}

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-c07c6fd7-b478-461a-95fc-55d02004806f/stop" -d '{

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

Response

Status

200 OK

Body

{
  "guid": "guid-c07c6fd7-b478-461a-95fc-55d02004806f",
  "name": "original_name",
  "desired_state": "STOPPED",
  "total_desired_instances": 0,
  "created_at": "2015-06-16T23:41:04Z",
  "updated_at": "2015-06-16T23:41:04Z",
  "environment_variables": {

  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-c07c6fd7-b478-461a-95fc-55d02004806f"
    },
    "processes": {
      "href": "/v3/apps/guid-c07c6fd7-b478-461a-95fc-55d02004806f/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-c07c6fd7-b478-461a-95fc-55d02004806f/packages"
    },
    "space": {
      "href": "/v2/spaces/f317b49d-fbe5-4031-99bb-024c95e005ea"
    },
    "desired_droplet": {
      "href": "/v3/droplets/guid-f5eab6e3-dc90-4e6b-b3f9-80a664595a70"
    },
    "start": {
      "href": "/v3/apps/guid-c07c6fd7-b478-461a-95fc-55d02004806f/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-c07c6fd7-b478-461a-95fc-55d02004806f/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-c07c6fd7-b478-461a-95fc-55d02004806f/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c4aeb73e-b4be-424b-ad8c-5f638f53f773
Content-Length: 1139
X-Content-Type-Options: nosniff