GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to retrieve user SSH keys via the API v4 endpoint. It is useful for scenarios where you need to programmatically access a user's SSH keys stored in GitLab, such as for automation scripts, user management, or integration with other systems.

Use Case Examples

  1. Retrieve the SSH keys of the authenticated user to verify access credentials.
  2. Automate the process of fetching user keys for auditing or synchronization with other services.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip using authentication for the request.
Authentication The authentication method used for the request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API requests are sent.
Method The HTTP method used for the API request, defaulting to GET.
Query Parameters Optional query parameters to paginate the results, including page number and items per page.

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.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the GitLab API key credential is valid and has the necessary permissions to access user keys.
  • Check the baseUrl is correctly set to the GitLab instance URL if using a self-hosted GitLab.
  • Verify query parameters for pagination are correctly formatted as integers to avoid API errors.

Links

Discussion