Home
Version 3
Processes (Experimental) API

Processes (Experimental) API

Scaling a Process

PUT /v3/processes/:guid/scale

Request

Route

PUT /v3/processes/ddbe3c10-8a88-4838-86dd-d9d71466dbf5/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.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MyIsImVtYWlsIjoiZW1haWwtMTYwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDZ9.m2liXD2rgdQdZl8KVh8Bjn2TObE7XBwwK00x4S4uGHA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/processes/ddbe3c10-8a88-4838-86dd-d9d71466dbf5/scale" -d '{
  "instances": 3,
  "memory_in_mb": 100,
  "disk_in_mb": 100
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MyIsImVtYWlsIjoiZW1haWwtMTYwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDZ9.m2liXD2rgdQdZl8KVh8Bjn2TObE7XBwwK00x4S4uGHA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "ddbe3c10-8a88-4838-86dd-d9d71466dbf5",
  "type": "web",
  "command": null,
  "instances": 3,
  "memory_in_mb": 100,
  "disk_in_mb": 100,
  "created_at": "2015-09-30T23:30:46Z",
  "updated_at": "2015-09-30T23:30:46Z",
  "links": {
    "self": {
      "href": "/v3/processes/ddbe3c10-8a88-4838-86dd-d9d71466dbf5"
    },
    "scale": {
      "href": "/v3/processes/ddbe3c10-8a88-4838-86dd-d9d71466dbf5/scale",
      "method": "PUT"
    },
    "app": {
      "href": "/v3/apps/guid-8ed73c42-1214-4760-a82d-48a1b68c54b1"
    },
    "space": {
      "href": "/v2/spaces/2843870a-8a96-48fe-bfc7-8eeaa802c4ba"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: bcec42e8-86e7-43e3-8e97-ed376babed39
Content-Length: 626
X-Content-Type-Options: nosniff