Skip to content

Commit

Permalink
[YUNIKORN-2581] Add placement rule REST call to documentation (#433)
Browse files Browse the repository at this point in the history
Side fix: add event streaming overview data to the state dump details

Closes: #433

Signed-off-by: Peter Bacsko <[email protected]>
  • Loading branch information
wilfred-s authored and pbacsko committed May 31, 2024
1 parent 0ad23da commit dba3ad1
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions docs/api/scheduler.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,48 @@ Returns general information and statistics about a partition.
}
```

## PlacementRules

Returns the list of currently active placement rules for the partition.
This list can be different from the list in the configuration.

**URL** : `/ws/v1/partition/{partitionName}/placementrules`

**Method** : `GET`

**Auth required** : NO

### Success response

**Code** : `200 OK`

**Content example**

```json
[
{
"name": "provided",
"parameters": {
"create":"false"
}
},
{
"name":"recovery",
"parameters": {
"queue": "root.@recovery@"
}
}
]
```

### Error responses

**Code** : `400 Bad Request` (URL query is invalid, missing partition name)

**Code** : `404 Not Found` (Partition not found)

**Code** : `500 Internal Server Error`

## Queues

### Partition queues
Expand Down Expand Up @@ -2009,6 +2051,8 @@ Endpoint to retrieve the following information in a single response:
* RMDiagnostics
* Log level
* Configuration
* Placement rules
* Event stream overview (client hostname and creation timestamp)

**URL** : `/ws/v1/fullstatedump`

Expand Down

0 comments on commit dba3ad1

Please sign in to comment.