Home
Version 3
Processes (Experimental) API

Processes (Experimental) API

List all Processes

GET /v3/processes

Request

Route

GET /v3/processes?page=1&per_page=2

Parameters

Name Description Valid Values Example Values
page Page to display
  • >= 1
per_page Number of results per page
  • 1-5000
page: 1
per_page: 2

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNCIsImVtYWlsIjoiZW1haWwtMjE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NjB9.9KZh9ugYZpOyZLpIpny0HQ6jSiuBTB-LshIEao-9yaU
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/processes?page=1&per_page=2" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNCIsImVtYWlsIjoiZW1haWwtMjE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NjB9.9KZh9ugYZpOyZLpIpny0HQ6jSiuBTB-LshIEao-9yaU" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "pagination": {
    "total_results": 3,
    "first": {
      "href": "/v3/processes?page=1&per_page=2"
    },
    "last": {
      "href": "/v3/processes?page=2&per_page=2"
    },
    "next": {
      "href": "/v3/processes?page=2&per_page=2"
    },
    "previous": null
  },
  "resources": [
    {
      "guid": "47aa9cc5-ab15-43cd-8cda-c3305a43da14",
      "type": "web",
      "command": null,
      "instances": 1,
      "memory_in_mb": 1024,
      "disk_in_mb": 1024,
      "created_at": "2015-10-15T23:52:40Z",
      "updated_at": "2015-10-15T23:52:40Z",
      "links": {
        "self": {
          "href": "/v3/processes/47aa9cc5-ab15-43cd-8cda-c3305a43da14"
        },
        "scale": {
          "href": "/v3/processes/47aa9cc5-ab15-43cd-8cda-c3305a43da14/scale",
          "method": "PUT"
        },
        "app": {
          "href": "/v3/apps/guid-d73edee3-f3d2-46a6-b2a5-b1b94c93f978"
        },
        "space": {
          "href": "/v2/spaces/d82aff7e-00fe-4851-b012-e9fa6b49d793"
        }
      }
    },
    {
      "guid": "485cb50c-ea5d-480d-9c39-b08dfd336b91",
      "type": "web",
      "command": null,
      "instances": 1,
      "memory_in_mb": 1024,
      "disk_in_mb": 1024,
      "created_at": "2015-10-15T23:52:40Z",
      "updated_at": "2015-10-15T23:52:40Z",
      "links": {
        "self": {
          "href": "/v3/processes/485cb50c-ea5d-480d-9c39-b08dfd336b91"
        },
        "scale": {
          "href": "/v3/processes/485cb50c-ea5d-480d-9c39-b08dfd336b91/scale",
          "method": "PUT"
        },
        "app": {
          "href": "/v3/apps/"
        },
        "space": {
          "href": "/v2/spaces/d82aff7e-00fe-4851-b012-e9fa6b49d793"
        }
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9b9c84ee-f90e-4bbf-812e-fa0e0d5bae1e
Content-Length: 1718
X-Content-Type-Options: nosniff