GitLab API

GitlabTool

Actions1000

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 outdated or unnecessary 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 a trigger token that is no longer needed for CI/CD pipelines.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used for the request, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but DELETE is used for this operation.
Path Parameters Parameters required in the URL path to identify the project and trigger token to delete.

Output

JSON

  • success - Indicates if the trigger token was successfully deleted.
  • message - Response message from the API regarding the deletion operation.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and trigger token ID are correct and exist in the GitLab instance.
  • Verify that the API key used has sufficient permissions to delete project triggers.
  • Check the base URL to ensure it points to the correct GitLab instance if using a self-hosted GitLab.

Links

Discussion