1.9 KiB
1.9 KiB
layout | page_title | sidebar_current | description |
---|---|---|---|
http | HTTP API: /v1/evaluation | docs-http-eval- | The '/1/evaluation' endpoint is used to query a specific evaluation. |
/v1/evaluation
The evaluation
endpoint is used to query a specific evaluations.
By default, the agent's local region is used; another region can
be specified using the ?region=
query parameter.
GET
- Description
- Lists all the evaluations.
- Method
- GET
- URL
- `/v1/evaluations`
- Parameters
- None
- Returns
-
```javascript { "ID": "151accaa-1ac6-90fe-d427-313e70ccbb88", "Priority": 50, "Type": "service", "TriggeredBy": "job-register", "JobID": "binstore-storagelocker", "JobModifyIndex": 14, "NodeID": "", "NodeModifyIndex": 0, "Status": "complete", "StatusDescription": "", "Wait": 0, "NextEval": "", "PreviousEval": "", "CreateIndex": 15, "ModifyIndex": 17 } ```
/v1/evaluation/<ID>/allocations
GET
- Description
- Query the allocations created or modified by an evaluation.
- Method
- GET
- URL
- `/v1/evaluation//allocations`
- Parameters
- None
- Returns
-
```javascript [ { "ID": "3575ba9d-7a12-0c96-7b28-add168c67984", "EvalID": "151accaa-1ac6-90fe-d427-313e70ccbb88", "Name": "binstore-storagelocker.binsl[0]", "NodeID": "a703c3ca-5ff8-11e5-9213-970ee8879d1b", "JobID": "binstore-storagelocker", "TaskGroup": "binsl", "DesiredStatus": "run", "DesiredDescription": "", "ClientStatus": "running", "ClientDescription": "", "CreateIndex": 16, "ModifyIndex": 16 }, ... ] ```