diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-01 06:11:03 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-01 06:11:03 +0300 |
commit | a3c1c29aa588228a2ae9c000620d1b73ff159fe3 (patch) | |
tree | 780805b1255c831569dfb1f43e1ac0f80917d8be /doc/api/runners.md | |
parent | 74dae34e98c5a321b152083022e7c210e875168c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/runners.md')
-rw-r--r-- | doc/api/runners.md | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/doc/api/runners.md b/doc/api/runners.md index c920de26de5..26de946b382 100644 --- a/doc/api/runners.md +++ b/doc/api/runners.md @@ -673,3 +673,42 @@ Response: |-----------|---------------------------------| | 200 | Credentials are valid | | 403 | Credentials are invalid | + +## Reset instance's runner registration token + +Resets the runner registration token for the GitLab instance. + +```plaintext +POST /runners/reset_registration_token +``` + +```shell +curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" \ + "https://gitlab.example.com/api/v4/runners/reset_registration_token" +``` + +## Reset project's runner registration token + +Resets the runner registration token for a project. + +```plaintext +POST /projects/:id/runners/reset_registration_token +``` + +```shell +curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" \ + "https://gitlab.example.com/api/v4/projects/9/runners/reset_registration_token" +``` + +## Reset group's runner registration token + +Resets the runner registration token for a group. + +```plaintext +POST /groups/:id/runners/reset_registration_token +``` + +```shell +curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" \ + "https://gitlab.example.com/api/v4/groups/9/runners/reset_registration_token" +``` |