GitLab API

GitlabTool

Actions905

Overview

This node operation deletes a deploy token from a specified GitLab project. It is useful for managing project access by removing deploy tokens that are no longer needed or should be revoked for security reasons. For example, if a deploy token was compromised or is no longer in use, this operation can be used to delete it from the project.

Use Case Examples

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

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used for the request, typically an API key credential.
baseUrl The base URL of the GitLab instance, defaulting to 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 project and the deploy token to delete.

Output

JSON

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

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID and deploy token ID are correct and exist in the GitLab instance.
  • Verify that the API authentication token has sufficient permissions to delete deploy tokens.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common error: 404 Not Found - The project or deploy token does not exist or is not accessible.
  • Common error: 401 Unauthorized - Authentication failed or token lacks required permissions.

Links

Discussion