Home
Version 3
Processes (Experimental) API

Processes (Experimental) API

Scaling a Process

PUT /v3/processes/:guid/scale

Request

Route

PUT /v3/processes/b7f6fc85-f527-4579-91e2-bd4f0ddf50ce/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.eyJ1c2VyX2lkIjoidWFhLWlkLTIwMyIsImVtYWlsIjoiZW1haWwtMTM2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1MzV9.EOEoO9lytGEuYHsCD31ILN176r6F5lkBeg_qkP7q558
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/processes/b7f6fc85-f527-4579-91e2-bd4f0ddf50ce/scale" -d '{
  "instances": 3,
  "memory_in_mb": 100,
  "disk_in_mb": 100
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwMyIsImVtYWlsIjoiZW1haWwtMTM2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1MzV9.EOEoO9lytGEuYHsCD31ILN176r6F5lkBeg_qkP7q558" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "b7f6fc85-f527-4579-91e2-bd4f0ddf50ce",
  "type": "web",
  "command": null,
  "instances": 3,
  "memory_in_mb": 100,
  "disk_in_mb": 100,
  "created_at": "2015-09-11T18:38:55Z",
  "updated_at": "2015-09-11T18:38:55Z",
  "_links": {
    "self": {
      "href": "/v3/processes/b7f6fc85-f527-4579-91e2-bd4f0ddf50ce"
    },
    "scale": {
      "href": "/v3/processes/b7f6fc85-f527-4579-91e2-bd4f0ddf50ce/scale",
      "method": "PUT"
    },
    "app": {
      "href": "/v3/apps/guid-5e494b45-ed69-4cd9-86c3-3c2f7968ef9d"
    },
    "space": {
      "href": "/v2/spaces/9b10f320-dc42-47da-bb63-20a3dd3426b2"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 365aed12-e04e-4dc6-b503-180826a7680c
Content-Length: 627
X-Content-Type-Options: nosniff