Skip to content

Commit

Permalink
[YUNIKORN-2315] Update REST API docs with changes from YUNIKORN-2235 (a…
Browse files Browse the repository at this point in the history
…pache#390)

Closes: apache#390

Signed-off-by: Chia-Ping Tsai <[email protected]>
  • Loading branch information
Xie Yifan authored and chia7712 committed Feb 27, 2024
1 parent df5ddac commit 1135108
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions docs/api/scheduler.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,28 @@ For the default queue hierarchy (only `root.default` leaf queue exists) a simila

## Applications

### Partition applications

Fetch all Applications for the given Partition/State combination and displays general information about the applications like used resources, queue name, submission time and allocations.
Only following application states are allowed: active, rejected, completed. Active is a fake state that represents all application states except completed and rejected.
For active state, can narrow the result by status query parameters(case-insensitive). For example, can fetch `Running` applications for the default partition by
`/ws/v1/partition/default/applications/active?status=running`.

**URL** : `/ws/v1/partition/:partition/applications/:state`

**Method** : `GET`

**Auth required** : NO

### Success response

**Code** : `200 OK`

**Content examples**

The content of the application object is the same as Queue Applications. See
[Queue Applications](#queue-applications) for details.

### Queue applications

Fetch all Applications for the given Partition/Queue combination and displays general information about the applications like used resources, queue name, submission time and allocations.
Expand Down Expand Up @@ -533,11 +555,11 @@ In the example below there are three allocations belonging to two applications,

## Application

### Queue application
### Partition/Queue application

Fetch an Application given a Partition, Queue and Application ID and displays general information about the application like used resources, queue name, submission time and allocations.
Fetch an Application given a Partition, Queue(optional) and Application ID and displays general information about the application like used resources, queue name, submission time and allocations.

**URL** : `/ws/v1/partition/{partitionName}/queue/{queueName}/application/{appId}`
**URL** : `/ws/v1/partition/{partitionName}/application/{appId}` or `/ws/v1/partition/{partitionName}/queue/{queueName}/application/{appId}`

**Method** : `GET`

Expand Down

0 comments on commit 1135108

Please sign in to comment.