Skip to content
代码片段 群组 项目
提交 00dcaf3d 编辑于 作者: Suzanne Selhorn's avatar Suzanne Selhorn
浏览文件

Merge branch 'docs/bprescott/20220606-api364348' into 'master'

Runner jobs api sort order require order_by to be specified

See merge request gitlab-org/gitlab!89334
No related branches found
No related tags found
无相关合并请求
......@@ -370,7 +370,7 @@ GET /runners/:id/jobs
| `id` | integer | yes | The ID of a runner |
| `status` | string | no | Status of the job; one of: `running`, `success`, `failed`, `canceled` |
| `order_by`| string | no | Order jobs by `id`. |
| `sort` | string | no | Sort jobs in `asc` or `desc` order (default: `desc`) |
| `sort` | string | no | Sort jobs in `asc` or `desc` order (default: `desc`). Specify `order_by` as well, including for `id`. |
```shell
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/runners/1/jobs?status=running"
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册