GitLab API

GitlabTool

Actions905

Overview

This node interacts with the GitLab API to retrieve SSH key information based on a provided fingerprint. It is useful for scenarios where you need to verify or fetch details about a specific SSH key registered in GitLab, such as in automation workflows for managing user access or auditing keys.

Use Case Examples

  1. Retrieve SSH key details by fingerprint to verify user access.
  2. Automate the process of checking if a specific SSH key exists in a GitLab instance.

Properties

Name Meaning
Skip Authentication If true, the node skips authentication when making the API request.
Authentication The authentication method used for the API request, hidden unless Skip Authentication is false.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request.
Query Parameters Collection of query parameters for the API request, specifically the fingerprint of the SSH key to retrieve.

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.
  • user_id - The ID of the user who owns the SSH key.

Dependencies

  • GitLab API credentials for authentication

Troubleshooting

  • Ensure the fingerprint query parameter is provided and correctly formatted; missing or invalid fingerprints will cause errors.
  • Authentication errors may occur if the GitLab API credentials are missing or invalid; verify credentials are correctly configured.
  • Network or base URL issues can cause request failures; confirm the baseUrl is correct and accessible.

Links

Discussion