GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific access token from a GitLab project using the GitLab API. It is useful for managing project access tokens by removing tokens that are no longer needed or have been compromised. For example, a user can delete an access token by specifying the project ID and the token ID to revoke access securely.

Use Case Examples

  1. Deleting an access token from a project to revoke access.
  2. Managing project security by removing outdated or compromised tokens.

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 token ID to identify the token to delete.

Output

JSON

  • statusCode - HTTP status code of the delete operation response
  • body - Response body from the GitLab API after deleting the access token

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and token ID are correct and exist in GitLab.
  • Check that the API key used has sufficient permissions to delete project access tokens.
  • If authentication is skipped, the request will likely fail due to lack of authorization.
  • Common error messages include 404 Not Found if the token or project does not exist, and 403 Forbidden if permissions are insufficient.

Links

Discussion