Home
Version 3
Processes (Experimental) API

Processes (Experimental) API

Scaling a Process

PUT /v3/processes/:guid/scale

Request

Route

PUT /v3/processes/1dbdf1dc-ec61-4ade-96bf-4e148092b2e8/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NiIsImVtYWlsIjoiZW1haWwtMjU2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MTJ9.DahRvwkybt3C6m5gVqzg7bC_p3q3dkOsw9jhdneOVLg
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/processes/1dbdf1dc-ec61-4ade-96bf-4e148092b2e8/scale" -d '{
  "instances": 3,
  "memory_in_mb": 100,
  "disk_in_mb": 100
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NiIsImVtYWlsIjoiZW1haWwtMjU2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MTJ9.DahRvwkybt3C6m5gVqzg7bC_p3q3dkOsw9jhdneOVLg" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "1dbdf1dc-ec61-4ade-96bf-4e148092b2e8",
  "type": "web",
  "command": null,
  "instances": 3,
  "memory_in_mb": 100,
  "disk_in_mb": 100,
  "created_at": "2015-07-27T22:43:31Z",
  "updated_at": "2015-07-27T22:43:32Z",
  "_links": {
    "self": {
      "href": "/v3/processes/1dbdf1dc-ec61-4ade-96bf-4e148092b2e8"
    },
    "scale": {
      "href": "/v3/processes/1dbdf1dc-ec61-4ade-96bf-4e148092b2e8/scale",
      "method": "PUT"
    },
    "app": {
      "href": "/v3/apps/guid-1ee4b2f6-a4b6-4125-97b6-0e7997e04643"
    },
    "space": {
      "href": "/v2/spaces/bb0d102f-1218-48ee-bb04-377f2743d433"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f3a0fe88-2d8e-437a-8064-e8cea633639c
Content-Length: 627
X-Content-Type-Options: nosniff