GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to retrieve a specific SSH key associated with a user by their user ID and the key ID. It is useful for scenarios where you need to fetch details about a user's SSH key, such as for auditing, verification, or management purposes within GitLab.

Use Case Examples

  1. Fetch SSH key details for a user to verify access permissions.
  2. Retrieve a specific SSH key to display or log key metadata in an admin dashboard.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication Type of authentication used, here it is GitLab API authentication.
baseUrl The base URL of the GitLab instance to which the API requests are sent.
Method HTTP method used for the request, default is GET.
Path Parameters Parameters for the API path, including user ID and SSH key ID.

Output

JSON

  • id - The unique identifier of the SSH key.
  • title - The title or name of the SSH key.
  • key - The actual SSH public key string.
  • created_at - Timestamp when the SSH key was created.
  • expires_at - Timestamp when the SSH key expires, if applicable.

Dependencies

  • GitLab API credentials for authentication

Troubleshooting

  • Ensure the user ID and key ID are correct and exist in GitLab to avoid 404 errors.
  • Check that the GitLab API credentials have sufficient permissions to access user SSH keys.
  • If skipping authentication, verify that the GitLab instance allows unauthenticated access to this endpoint.

Links

Discussion