GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation resets the registration token for a specific project runner in GitLab. It is useful when you need to invalidate the current registration token and generate a new one for security or administrative purposes. For example, if a runner's token is compromised or you want to rotate tokens regularly, this operation helps maintain secure runner registration.

Use Case Examples

  1. Reset the registration token of a project runner to prevent unauthorized runner registrations.
  2. Rotate the registration token for a project to enhance security.

Properties

Name Meaning
Skip Authentication Option to skip API authentication for the request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is POST.
Path Parameters The path parameter 'id' representing the ID of the project whose runner registration token is to be reset.

Output

JSON

  • token - The new registration token for the project runner after reset.

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and the user has sufficient permissions to reset the runner registration token.
  • If authentication is skipped, the request may fail due to lack of authorization.
  • Verify the base URL is correct for the GitLab instance being accessed.

Links

Discussion