GitLab API icon

GitLab API

Gitlab

Actions880

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. Automate deletion of an SSH key by its ID from a user's GitLab account.
  2. Remove a compromised SSH key from the user's GitLab profile programmatically.

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 to be included in the request path, specifically the SSH key ID to delete.

Output

JSON

  • statusCode - HTTP response status code indicating the result of the delete operation.
  • responseBody - Body of the HTTP response, typically empty or containing confirmation of deletion.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the SSH key ID provided in the path parameters is correct and exists in the user's GitLab account.
  • Authentication errors may occur if the API key is missing, invalid, or lacks sufficient permissions to delete user keys.
  • HTTP method must be set to DELETE for this operation to succeed.

Links

Discussion