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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMyIsImVtYWlsIjoiZW1haWwtMTYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTR9.-4lPHtoF1ij4AhACcV_BGuYttDCwCGDeuOwsOL45oNw
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/processes?page=1&per_page=2" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMyIsImVtYWlsIjoiZW1haWwtMTYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTR9.-4lPHtoF1ij4AhACcV_BGuYttDCwCGDeuOwsOL45oNw" \
	-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": "58748391-3412-4385-aeb1-d8e21f0f3903",
      "type": "web",
      "command": null,
      "instances": 1,
      "memory_in_mb": 1024,
      "disk_in_mb": 1024,
      "created_at": "2015-06-16T23:40:54Z",
      "updated_at": "2015-06-16T23:40:54Z",
      "_links": {
        "self": {
          "href": "/v3/processes/58748391-3412-4385-aeb1-d8e21f0f3903"
        },
        "scale": {
          "href": "/v3/processes/58748391-3412-4385-aeb1-d8e21f0f3903/scale",
          "method": "PUT"
        },
        "app": {
          "href": "/v3/apps/guid-19affb77-5eeb-44b2-821f-241832b9b61b"
        },
        "space": {
          "href": "/v2/spaces/54899c8e-3292-4632-89d8-7fba9c5b64fa"
        }
      }
    },
    {
      "guid": "95d7d5a0-4e72-4f0b-aeba-40fc9d77ce54",
      "type": "web",
      "command": null,
      "instances": 1,
      "memory_in_mb": 1024,
      "disk_in_mb": 1024,
      "created_at": "2015-06-16T23:40:54Z",
      "updated_at": "2015-06-16T23:40:54Z",
      "_links": {
        "self": {
          "href": "/v3/processes/95d7d5a0-4e72-4f0b-aeba-40fc9d77ce54"
        },
        "scale": {
          "href": "/v3/processes/95d7d5a0-4e72-4f0b-aeba-40fc9d77ce54/scale",
          "method": "PUT"
        },
        "app": {
          "href": "/v3/apps/"
        },
        "space": {
          "href": "/v2/spaces/54899c8e-3292-4632-89d8-7fba9c5b64fa"
        }
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9af2d33e-6695-40a8-a31b-52533861573d
Content-Length: 1720
X-Content-Type-Options: nosniff