Home
Version 3
Processes (Experimental) API

Processes (Experimental) API

Scaling a Process

PUT /v3/processes/:guid/scale

Request

Route

PUT /v3/processes/89926976-b13b-4720-bdb8-72157b2c1fe1/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MSIsImVtYWlsIjoiZW1haWwtMjQyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MTR9.BsiB2t6kFy3AtcuR2tKH8p0Tex3AdZetrsRp3G-2U18
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/processes/89926976-b13b-4720-bdb8-72157b2c1fe1/scale" -d '{
  "instances": 3,
  "memory_in_mb": 100,
  "disk_in_mb": 100
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MSIsImVtYWlsIjoiZW1haWwtMjQyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MTR9.BsiB2t6kFy3AtcuR2tKH8p0Tex3AdZetrsRp3G-2U18" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "89926976-b13b-4720-bdb8-72157b2c1fe1",
  "type": "web",
  "command": null,
  "instances": 3,
  "memory_in_mb": 100,
  "disk_in_mb": 100,
  "created_at": "2015-08-31T21:50:14Z",
  "updated_at": "2015-08-31T21:50:14Z",
  "_links": {
    "self": {
      "href": "/v3/processes/89926976-b13b-4720-bdb8-72157b2c1fe1"
    },
    "scale": {
      "href": "/v3/processes/89926976-b13b-4720-bdb8-72157b2c1fe1/scale",
      "method": "PUT"
    },
    "app": {
      "href": "/v3/apps/guid-2f8d2d95-fada-4d5c-b35d-df46fe68a2f3"
    },
    "space": {
      "href": "/v2/spaces/42d86225-c509-4d42-909c-a28d60cc5fcb"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 90628149-aece-4999-b714-e806bf5a6809
Content-Length: 627
X-Content-Type-Options: nosniff