Home
Version 3
Processes (Experimental) API

Processes (Experimental) API

Scaling a Process

PUT /v3/processes/:guid/scale

Request

Route

PUT /v3/processes/3a8f78b2-71f5-4457-8471-0c4c1fbd2dcc/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.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MSIsImVtYWlsIjoiZW1haWwtODRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjMwMH0.LaaE3-4DA-SAUASCBLBktBy7CYhB-gkXH2DmAQhXE_k
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/processes/3a8f78b2-71f5-4457-8471-0c4c1fbd2dcc/scale" -d '{
  "instances": 3,
  "memory_in_mb": 100,
  "disk_in_mb": 100
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MSIsImVtYWlsIjoiZW1haWwtODRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjMwMH0.LaaE3-4DA-SAUASCBLBktBy7CYhB-gkXH2DmAQhXE_k" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "3a8f78b2-71f5-4457-8471-0c4c1fbd2dcc",
  "type": "web",
  "command": null,
  "instances": 3,
  "memory_in_mb": 100,
  "disk_in_mb": 100,
  "created_at": "2015-10-13T17:31:40Z",
  "updated_at": "2015-10-13T17:31:40Z",
  "links": {
    "self": {
      "href": "/v3/processes/3a8f78b2-71f5-4457-8471-0c4c1fbd2dcc"
    },
    "scale": {
      "href": "/v3/processes/3a8f78b2-71f5-4457-8471-0c4c1fbd2dcc/scale",
      "method": "PUT"
    },
    "app": {
      "href": "/v3/apps/guid-143eef33-66a2-4e17-84a4-71347793440e"
    },
    "space": {
      "href": "/v2/spaces/b6b451b0-9735-4488-bbe2-85b10eaf62e9"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 577afb05-4994-4a97-b25e-ebb17009603e
Content-Length: 626
X-Content-Type-Options: nosniff