Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-10-07 21:08:34 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-10-07 21:08:34 +0300
commit1850d48925997ccc467fe0cbe6144d1d67fbdb55 (patch)
tree1c2081b4f9b986e9017761db5b6915ff3db8de79 /doc/api/runners.md
parent1d3a583ac1d4affb8871a76121815b1c104ef93a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/runners.md')
-rw-r--r--doc/api/runners.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/api/runners.md b/doc/api/runners.md
index 55dcf1dc3ee..778ec406622 100644
--- a/doc/api/runners.md
+++ b/doc/api/runners.md
@@ -271,6 +271,22 @@ Example response:
}
```
+### Pause a runner
+
+Pause a specific runner.
+
+```plaintext
+PUT --form "active=false" /runners/:runner_id
+```
+
+| Attribute | Type | Required | Description |
+|-------------|---------|----------|---------------------|
+| `runner_id` | integer | yes | The ID of a runner |
+
+```shell
+curl --request PUT --header "PRIVATE-TOKEN: <your_access_token>" --form "active=false" "https://gitlab.example.com/api/v4/runners/6"
+```
+
## List runner's jobs
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/15432) in GitLab 10.3.