GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a deploy token from a specified GitLab project. It is useful for managing project access by revoking deploy tokens that are no longer needed or compromised. For example, a user can automate the removal of deploy tokens for security purposes or cleanup.

Use Case Examples

  1. Delete a deploy token from a project by specifying the project ID and the token ID to revoke access.
  2. Automate the cleanup of deploy tokens in GitLab projects to maintain security hygiene.

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 but DELETE is used for this operation.
Path Parameters Parameters for the API path including project ID and deploy token ID to identify the resource to delete.

Output

JSON

  • statusCode - HTTP status code of the delete operation response.
  • body - Response body from the GitLab API after attempting to delete the deploy token.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and deploy token ID are correct and exist in the GitLab instance.
  • Verify that the API key used has sufficient permissions to delete deploy tokens in the project.
  • Check the base URL to ensure it points to the correct GitLab instance if using a self-hosted GitLab.
  • Common error messages include 404 Not Found if the project or token does not exist, and 403 Forbidden if the API key lacks permissions.

Links

Discussion