GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to retrieve details of a specific SSH key by its ID. It is useful for scenarios where you need to fetch information about an SSH key associated with a GitLab user or project, such as verifying key details or managing access keys.

Use Case Examples

  1. Retrieve SSH key details by providing the key ID to audit or manage SSH keys in GitLab.
  2. Use in automation workflows to fetch SSH key information before performing further GitLab operations.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to 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.
Path Parameters Parameters to be included in the request path, specifically the SSH key ID to fetch.

Output

JSON

  • id - The ID of the SSH key.
  • title - The title or name of the SSH key.
  • key - The actual SSH key string.
  • created_at - Timestamp when the SSH key was created.
  • user_id - ID of the user who owns the SSH key.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the SSH key ID provided in the path parameters is valid and exists in the GitLab instance.
  • If authentication is enabled, verify that the GitLab API key credential is correctly configured and has sufficient permissions to access SSH key details.
  • Check the baseUrl property to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • Common error messages may include 404 Not Found if the SSH key ID does not exist, or 401 Unauthorized if authentication fails. Verify parameters and credentials accordingly.

Links

Discussion