GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a specific access token from a GitLab group using the GitLab API. It is useful for managing group access tokens by revoking tokens that are no longer needed or compromised. For example, an administrator can use this node to remove a token associated with a group to prevent further access.

Use Case Examples

  1. Deleting an access token from a GitLab group to revoke its permissions.
  2. Automating the cleanup of expired or unused group access tokens in GitLab.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip the authentication process.
Authentication The authentication method used for the GitLab API, defaulting to GitLab API key authentication.
baseUrl The base URL for the GitLab instance, default is https://gitlab.com.
Method The 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 group and the token to delete.

Output

JSON

  • success - Indicates whether the token deletion was successful.
  • statusCode - HTTP status code returned by the API.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

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

Links

Discussion