GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a specific deploy token from a GitLab group. It is useful for managing access tokens that allow automated deployment or integration with GitLab groups, ensuring that tokens no longer needed or compromised can be removed securely. For example, a DevOps engineer might use this node to revoke a deploy token after a project is completed or when rotating credentials for security purposes.

Use Case Examples

  1. Deleting a deploy token from a GitLab group to revoke access.
  2. Automating the cleanup of deploy tokens in CI/CD pipelines.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is 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.
Path Parameters Parameters for the API path, including group ID and deploy token ID.

Output

JSON

  • success - Indicates if the deploy token was successfully deleted.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID and deploy token ID are correct and exist in GitLab.
  • Verify that the API key used has sufficient permissions to delete deploy tokens.
  • Check network connectivity to the GitLab instance specified by the baseUrl.
  • Common error: 404 Not Found - The group or deploy token ID does not exist or is incorrect.
  • Common error: 401 Unauthorized - Authentication failed, check API key validity and permissions.

Links

Discussion