GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves details of a specific SSH key from the GitLab API using the key's ID. It is useful for scenarios where you need to fetch information about a particular SSH key associated with a GitLab user or project, such as verifying key details or managing access keys.

Use Case Examples

  1. Fetch SSH key details by providing the key ID to manage user access in GitLab.
  2. Retrieve SSH key information to audit or update key permissions.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication Type of authentication used for the request, defaulting to GitLab API key authentication.
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 public key string.
  • created_at - Timestamp when the SSH key was created.
  • expires_at - Timestamp when the SSH key expires, if applicable.
  • 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 if using a self-hosted GitLab instance to ensure it is correct and accessible.
  • Common error messages include 404 Not Found if the SSH key ID does not exist, and 401 Unauthorized if authentication fails. Verify credentials and permissions to resolve these errors.

Links

Discussion