GitLab API

GitlabTool

Actions905

Overview

This node operation deletes a specific SSH key associated with the authenticated user in GitLab. It is useful for managing user SSH keys by removing keys that are no longer needed or compromised. For example, a user can automate the removal of an old SSH key from their GitLab account to maintain security.

Use Case Examples

  1. Delete an SSH key by its ID to revoke access from a device.
  2. Automate cleanup of SSH keys for users who no longer require access.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used for the request, defaulting to GitLab API key.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method The HTTP method used for the request, default is GET but DELETE is used for this operation.
Path Parameters The path parameters for the request, specifically the SSH key ID to delete.

Output

JSON

  • success - Indicates whether the SSH key was successfully deleted.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the SSH key ID provided in the path parameters is valid and exists.
  • Verify that the API key used has sufficient permissions to delete user SSH keys.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • If skipping authentication, the request will likely fail due to lack of authorization.

Links

Discussion