GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a specific project access token in GitLab using the GitLab API. It is useful for managing project access tokens by removing tokens that are no longer needed or have been compromised, thereby enhancing project security. For example, a user can automate the deletion of expired or unused access tokens for a project to maintain secure access control.

Use Case Examples

  1. Deleting a project access token by specifying the project ID and token ID to revoke access.
  2. Automating cleanup of access tokens for projects in GitLab to ensure only active tokens remain valid.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for testing or public endpoints.
Authentication Type of authentication used, here it is GitLab API authentication.
baseUrl Base URL of the GitLab instance, defaulting to 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 access token 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 access token.

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure the project ID and token ID are correct and exist in GitLab; otherwise, the API will return an error indicating the resource was not found.
  • Authentication errors may occur if the API token is invalid or lacks sufficient permissions to delete project access tokens.
  • Network or base URL misconfiguration can cause connection failures; verify the baseUrl is correct for your GitLab instance.

Links

Discussion