Home
Version 3
Processes (Experimental) API

Processes (Experimental) API

Scaling a Process

PUT /v3/processes/:guid/scale

Request

Route

PUT /v3/processes/d684ac9a-7e40-4b9a-91ce-a74ace296350/scale

Parameters

Name Description Valid Values Example Values
instances Number of instances

Body

Name Description Default Valid Values Example Values
{
  "instances": 3
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNCIsImVtYWlsIjoiZW1haWwtNzJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMzk4MTEwM30.HR72LflOXSmRjwF0l4yflWD9cTPoA1jgV9I3_B3yTiY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/processes/d684ac9a-7e40-4b9a-91ce-a74ace296350/scale" -d '{
  "instances": 3
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNCIsImVtYWlsIjoiZW1haWwtNzJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMzk4MTEwM30.HR72LflOXSmRjwF0l4yflWD9cTPoA1jgV9I3_B3yTiY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "d684ac9a-7e40-4b9a-91ce-a74ace296350",
  "type": "web",
  "command": null,
  "instances": 3,
  "created_at": "2015-06-04T00:05:03Z",
  "updated_at": "2015-06-04T00:05:03Z",
  "_links": {
    "self": {
      "href": "/v3/processes/d684ac9a-7e40-4b9a-91ce-a74ace296350"
    },
    "scale": {
      "href": "/v3/processes/d684ac9a-7e40-4b9a-91ce-a74ace296350/scale",
      "method": "PUT"
    },
    "app": {
      "href": "/v3/apps/guid-38911922-297b-4239-9e28-956306e1068c"
    },
    "space": {
      "href": "/v2/spaces/3e443f5d-4e78-4f16-ba64-0e7bfac26a6e"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 308d2c6a-1dce-4090-ad0e-53d2605cbfae
Content-Length: 583
X-Content-Type-Options: nosniff