GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific SSH key associated with a user in GitLab. It is useful for managing user access by removing outdated or compromised SSH keys from a user's account. For example, an administrator can use this operation to revoke a user's SSH key to prevent further access.

Use Case Examples

  1. Deleting an SSH key from a user account to enhance security.
  2. Removing an inactive SSH key from a user's profile to maintain clean access control.

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 for GitLab.
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 required for the API call, including the user ID and the SSH key ID to be deleted.

Output

JSON

  • statusCode - The HTTP status code returned by the API indicating the result of the delete operation.
  • responseBody - The body of the response from the API, typically empty for a successful delete operation.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the user ID and SSH key ID are correct and exist in GitLab to avoid 404 Not Found errors.
  • Verify that the API authentication token has sufficient permissions to delete user SSH keys to prevent authorization errors.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion