GitLab API

GitlabTool

Actions905

Overview

This node operation deletes a specific trigger token from a GitLab project using the GitLab API. It is useful for managing project triggers by removing obsolete or compromised trigger tokens to maintain security and control over project automation.

Use Case Examples

  1. Deleting a trigger token from a project to revoke its access.
  2. Removing an unused trigger token to clean up project settings.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, default is DELETE for this operation.
Path Parameters Parameters required in the URL path to identify the project and trigger token to delete.

Output

JSON

  • success - Indicates whether the trigger token was successfully deleted.
  • statusCode - HTTP status code returned by the API.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID and trigger token ID are correct and exist in the GitLab instance.
  • Verify that the API authentication credentials are valid and have sufficient permissions to delete triggers.
  • Check the base URL to confirm it points to the correct GitLab instance if using a self-hosted GitLab server.

Links

Discussion