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.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NSIsImVtYWlsIjoiZW1haWwtMjU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MTF9.4PoRx6JEELaprUt6D2qK4jM0SVw1TxRLSnPB-o5oEA4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/processes?page=1&per_page=2" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NSIsImVtYWlsIjoiZW1haWwtMjU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MTF9.4PoRx6JEELaprUt6D2qK4jM0SVw1TxRLSnPB-o5oEA4" \
	-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": "fdfa71c4-5e0e-4f68-adb6-82fc250cd233",
      "type": "web",
      "command": null,
      "instances": 1,
      "memory_in_mb": 1024,
      "disk_in_mb": 1024,
      "created_at": "2015-07-27T22:43:31Z",
      "updated_at": "2015-07-27T22:43:31Z",
      "_links": {
        "self": {
          "href": "/v3/processes/fdfa71c4-5e0e-4f68-adb6-82fc250cd233"
        },
        "scale": {
          "href": "/v3/processes/fdfa71c4-5e0e-4f68-adb6-82fc250cd233/scale",
          "method": "PUT"
        },
        "app": {
          "href": "/v3/apps/guid-e7b136ef-0e53-4421-a34e-f7d5bcc3508e"
        },
        "space": {
          "href": "/v2/spaces/176b0be5-f742-4db3-a0a2-6c178351052e"
        }
      }
    },
    {
      "guid": "491ef052-92a1-4c82-9cb9-7cf840a79eed",
      "type": "web",
      "command": null,
      "instances": 1,
      "memory_in_mb": 1024,
      "disk_in_mb": 1024,
      "created_at": "2015-07-27T22:43:31Z",
      "updated_at": "2015-07-27T22:43:31Z",
      "_links": {
        "self": {
          "href": "/v3/processes/491ef052-92a1-4c82-9cb9-7cf840a79eed"
        },
        "scale": {
          "href": "/v3/processes/491ef052-92a1-4c82-9cb9-7cf840a79eed/scale",
          "method": "PUT"
        },
        "app": {
          "href": "/v3/apps/"
        },
        "space": {
          "href": "/v2/spaces/176b0be5-f742-4db3-a0a2-6c178351052e"
        }
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: abd1a4df-2ea1-4c46-a64a-b6a7fd66e3cc
Content-Length: 1720
X-Content-Type-Options: nosniff