GitLab API

GitlabTool

Actions905

Overview

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

Use Case Examples

  1. Fetch details of an SSH key by its ID to verify its properties.
  2. Retrieve a user's SSH key information for audit or management purposes.

Properties

Name Meaning
Skip Authentication If true, the node skips authentication for the request.
Authentication The authentication method used for the request, defaulting to GitLab API key.
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.
Path Parameters Parameters included in the request path, specifically the SSH key ID 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.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the provided SSH key ID is valid and exists for the authenticated user to avoid 404 errors.
  • Check that the GitLab API key credential is correctly configured and has sufficient permissions to access user keys.
  • If skipping authentication, the request may fail due to lack of authorization.

Links

Discussion