Home
Version 3
Processes (Experimental) API

Processes (Experimental) API

Scaling a Process

PUT /v3/processes/:guid/scale

Request

Route

PUT /v3/processes/6a1999b8-70a4-4bf9-af39-056ac512373d/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.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MyIsImVtYWlsIjoiZW1haWwtMTc5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODl9.Kc3cd4BX2_FO3hApOOZsm0I7BuoFW7Fm0WS6TKRlX64
Content-Type: application/json
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/processes/6a1999b8-70a4-4bf9-af39-056ac512373d/scale" -d '{
  "instances": 3,
  "memory_in_mb": 100,
  "disk_in_mb": 100
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MyIsImVtYWlsIjoiZW1haWwtMTc5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODl9.Kc3cd4BX2_FO3hApOOZsm0I7BuoFW7Fm0WS6TKRlX64" \
	-H "Content-Type: application/json" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "6a1999b8-70a4-4bf9-af39-056ac512373d",
  "type": "web",
  "command": null,
  "instances": 3,
  "memory_in_mb": 100,
  "disk_in_mb": 100,
  "created_at": "2015-12-22T18:28:09Z",
  "updated_at": "2015-12-22T18:28:09Z",
  "links": {
    "self": {
      "href": "/v3/processes/6a1999b8-70a4-4bf9-af39-056ac512373d"
    },
    "scale": {
      "href": "/v3/processes/6a1999b8-70a4-4bf9-af39-056ac512373d/scale",
      "method": "PUT"
    },
    "app": {
      "href": "/v3/apps/guid-5c71f2f9-d142-47f2-b1eb-e56a8c1d6823"
    },
    "space": {
      "href": "/v2/spaces/318d74c9-b035-4922-b0d5-032c11109bab"
    }
  }
}

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