Home
Version 3
Processes (Experimental) API

Processes (Experimental) API

Scaling a Process

PUT /v3/processes/:guid/scale

Request

Route

PUT /v3/processes/b6185042-5f7c-45bc-8d8b-47a1eb53633e/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.eyJ1c2VyX2lkIjoidWFhLWlkLTQxMSIsImVtYWlsIjoiZW1haWwtMjgyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5OTJ9.gfunlHsoIh1o75_IjGQ0n893EASwxYz30OxZbXZQKfU
Content-Type: application/json
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/processes/b6185042-5f7c-45bc-8d8b-47a1eb53633e/scale" -d '{
  "instances": 3,
  "memory_in_mb": 100,
  "disk_in_mb": 100
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxMSIsImVtYWlsIjoiZW1haWwtMjgyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5OTJ9.gfunlHsoIh1o75_IjGQ0n893EASwxYz30OxZbXZQKfU" \
	-H "Content-Type: application/json" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "b6185042-5f7c-45bc-8d8b-47a1eb53633e",
  "type": "web",
  "command": null,
  "instances": 3,
  "memory_in_mb": 100,
  "disk_in_mb": 100,
  "created_at": "2016-01-13T17:29:52Z",
  "updated_at": "2016-01-13T17:29:52Z",
  "links": {
    "self": {
      "href": "/v3/processes/b6185042-5f7c-45bc-8d8b-47a1eb53633e"
    },
    "scale": {
      "href": "/v3/processes/b6185042-5f7c-45bc-8d8b-47a1eb53633e/scale",
      "method": "PUT"
    },
    "app": {
      "href": "/v3/apps/guid-f7abc415-7e56-4867-b8f3-9c32d7d5e248"
    },
    "space": {
      "href": "/v2/spaces/561eff66-66be-4a5a-a932-83c91cc3ba77"
    }
  }
}

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.027930
Content-Length: 626