Home
Version 3
Processes (Experimental) API

Processes (Experimental) API

Scaling a Process

PUT /v3/processes/:guid/scale

Request

Route

PUT /v3/processes/43f8d656-309b-40ea-a12f-ae714d2dc1a4/scale

Body

Name Description Default Valid Values Example Values
instances Number of instances
memory_in_mb The memory in mb allocated per instance
disk_in_mb The disk in mb allocated per instance
{
  "instances": 3,
  "memory_in_mb": 100,
  "disk_in_mb": 100
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMyIsImVtYWlsIjoiZW1haWwtMTAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4MzZ9.fTZutjLzHd32CXyTzRfeAyc1uKhK-kZ0-7vILRhu3fY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/processes/43f8d656-309b-40ea-a12f-ae714d2dc1a4/scale" -d '{
  "instances": 3,
  "memory_in_mb": 100,
  "disk_in_mb": 100
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMyIsImVtYWlsIjoiZW1haWwtMTAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4MzZ9.fTZutjLzHd32CXyTzRfeAyc1uKhK-kZ0-7vILRhu3fY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "43f8d656-309b-40ea-a12f-ae714d2dc1a4",
  "type": "web",
  "command": null,
  "instances": 3,
  "memory_in_mb": 100,
  "disk_in_mb": 100,
  "created_at": "2015-11-03T00:53:56Z",
  "updated_at": "2015-11-03T00:53:56Z",
  "links": {
    "self": {
      "href": "/v3/processes/43f8d656-309b-40ea-a12f-ae714d2dc1a4"
    },
    "scale": {
      "href": "/v3/processes/43f8d656-309b-40ea-a12f-ae714d2dc1a4/scale",
      "method": "PUT"
    },
    "app": {
      "href": "/v3/apps/guid-3bacfba1-edd3-4f42-860e-c350e4826849"
    },
    "space": {
      "href": "/v2/spaces/f3882528-cf87-45a0-ab1c-68b6fcf1f81e"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 868826ed-6159-43de-b2fe-192cbc89f6d9
Content-Length: 626
X-Content-Type-Options: nosniff