GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation deletes a deploy key from a specific GitLab project. It is useful for managing project security by removing deploy keys that are no longer needed or should be revoked. For example, a user can automate the removal of deploy keys when a developer leaves a project or when keys are rotated for security purposes.

Use Case Examples

  1. Automate removal of deploy keys from GitLab projects to maintain security.
  2. Remove deploy keys that are no longer in use or have been compromised.

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 key ID.

Output

JSON

  • success - Indicates if the deploy key was successfully deleted.

Dependencies

  • GitLab API key credential

Troubleshooting

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

Links

Discussion