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.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMSIsImVtYWlsIjoiZW1haWwtOTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NzExNjgzNn0.iIxPUiYkJT3KWGbn-gOF6ttsEcV9vCZoXSp31rOaio4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/processes?page=1&per_page=2" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMSIsImVtYWlsIjoiZW1haWwtOTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NzExNjgzNn0.iIxPUiYkJT3KWGbn-gOF6ttsEcV9vCZoXSp31rOaio4" \
	-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": "d6b4d9e2-b1a0-405f-a2e3-9663125cbc8a",
      "type": "web",
      "command": null,
      "instances": 1,
      "memory_in_mb": 1024,
      "disk_in_mb": 1024,
      "created_at": "2015-11-03T00:53:56Z",
      "updated_at": "2015-11-03T00:53:56Z",
      "links": {
        "self": {
          "href": "/v3/processes/d6b4d9e2-b1a0-405f-a2e3-9663125cbc8a"
        },
        "scale": {
          "href": "/v3/processes/d6b4d9e2-b1a0-405f-a2e3-9663125cbc8a/scale",
          "method": "PUT"
        },
        "app": {
          "href": "/v3/apps/guid-1a09fc9a-29da-4cc8-9cbe-4e3b2d24ca08"
        },
        "space": {
          "href": "/v2/spaces/4f179d2b-cc9d-4da0-b517-b1a6525ec4ff"
        }
      }
    },
    {
      "guid": "0c40a174-7ad4-4b72-9b0f-0481b8fbdcf7",
      "type": "web",
      "command": null,
      "instances": 1,
      "memory_in_mb": 1024,
      "disk_in_mb": 1024,
      "created_at": "2015-11-03T00:53:56Z",
      "updated_at": "2015-11-03T00:53:56Z",
      "links": {
        "self": {
          "href": "/v3/processes/0c40a174-7ad4-4b72-9b0f-0481b8fbdcf7"
        },
        "scale": {
          "href": "/v3/processes/0c40a174-7ad4-4b72-9b0f-0481b8fbdcf7/scale",
          "method": "PUT"
        },
        "app": {
          "href": "/v3/apps/"
        },
        "space": {
          "href": "/v2/spaces/4f179d2b-cc9d-4da0-b517-b1a6525ec4ff"
        }
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7b9547ee-ae57-4d23-8eb1-9a88bad0d08c
Content-Length: 1718
X-Content-Type-Options: nosniff