Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apis/cf/latest/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,8 @@ paths:
$ref: './paths/Processes.yaml#/~1v3~1processes'
/v3/processes/{guid}:
$ref: './paths/Processes.yaml#/~1v3~1processes~1{guid}'
/v3/processes/{guid}/process_instances:
$ref: './paths/Processes.yaml#/~1v3~1processes~1{guid}~1process_instances'
/v3/processes/{guid}/stats:
$ref: './paths/Processes.yaml#/~1v3~1processes~1{guid}~1stats'
/v3/processes/{guid}/actions/scale:
Expand Down
49 changes: 49 additions & 0 deletions apis/cf/latest/paths/Processes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,55 @@
$ref: '../components/responses/ServiceUnavailable.yaml'
'409':
$ref: '../components/responses/Conflict.yaml'
/v3/processes/{guid}/process_instances:
get:
summary: List instances for a process
description: Retrieve the instances for a process. Unlike the stats endpoint,
this returns a simplified view with only the index, state, and uptime of each
instance.
operationId: listProcessInstances
tags:
- Processes
parameters:
- $ref: '../components/parameters/Guid.yaml'
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
resources:
type: array
items:
type: object
properties:
index:
type: integer
state:
type: string
enum:
- RUNNING
- CRASHED
- STARTING
- DOWN
since:
type: number
format: double
links:
type: object
properties:
self:
$ref: '../components/schemas/Link.yaml'
process:
$ref: '../components/schemas/Link.yaml'
'401':
$ref: '../components/responses/Unauthorized.yaml'
'404':
$ref: '../components/responses/NotFound.yaml'
'403':
$ref: '../components/responses/Forbidden.yaml'
/v3/processes/{guid}/stats:
get:
summary: Get stats for a process
Expand Down
Loading