Home
Version 3
Processes (Experimental) API

Processes (Experimental) API

Scaling a Process

PUT /v3/processes/:guid/scale

Request

Route

PUT /v3/processes/eb4a0486-6caa-4295-8c03-60d61ed563b1/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.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMiIsImVtYWlsIjoiZW1haWwtODNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODU5OTQzMH0.-YhuU7ZwMHSujlqdnHLbo875sajjbR4VZlU_6Rd7Ypo
Content-Type: application/json
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/processes/eb4a0486-6caa-4295-8c03-60d61ed563b1/scale" -d '{
  "instances": 3,
  "memory_in_mb": 100,
  "disk_in_mb": 100
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMiIsImVtYWlsIjoiZW1haWwtODNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODU5OTQzMH0.-YhuU7ZwMHSujlqdnHLbo875sajjbR4VZlU_6Rd7Ypo" \
	-H "Content-Type: application/json" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "eb4a0486-6caa-4295-8c03-60d61ed563b1",
  "type": "web",
  "command": null,
  "instances": 3,
  "memory_in_mb": 100,
  "disk_in_mb": 100,
  "created_at": "2016-03-14T22:30:30Z",
  "updated_at": "2016-03-14T22:30:30Z",
  "links": {
    "self": {
      "href": "/v3/processes/eb4a0486-6caa-4295-8c03-60d61ed563b1"
    },
    "scale": {
      "href": "/v3/processes/eb4a0486-6caa-4295-8c03-60d61ed563b1/scale",
      "method": "PUT"
    },
    "app": {
      "href": "/v3/apps/guid-de3c7f1d-3ce0-4d44-80bf-042eb55b43ec"
    },
    "space": {
      "href": "/v2/spaces/e59f6d7a-7695-4769-8135-115829fb8634"
    }
  }
}

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
X-Runtime: 0.033582
Content-Length: 626