GitLab API icon

GitLab API

Gitlab

Actions880

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. For example, an administrator can use this operation to revoke a user's SSH key access by specifying the user ID and the key ID.

Use Case Examples

  1. Deleting an SSH key for a user to revoke access.
  2. Managing user SSH keys by removing specific keys.

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 to which the request is sent.
Method The HTTP method used for the request, default is GET but can be set to DELETE for this operation.
Path Parameters Parameters used in the request path to specify the user ID and the SSH key ID to delete.

Output

JSON

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

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the user ID and SSH key ID are correct and exist in GitLab to avoid 404 Not Found errors.
  • Check that the API authentication credentials are valid and have sufficient permissions to delete user SSH keys.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated requests for this operation, otherwise it will fail.

Links

Discussion