GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves the SSH keys of a specific user from the GitLab API (version 4). It is useful for scenarios where you need to manage or audit user SSH keys in GitLab, such as fetching keys for security reviews or automation scripts that handle user access.

Use Case Examples

  1. Fetch SSH keys for a user by their user ID or username to verify access credentials.
  2. Automate the retrieval of user SSH keys for integration with other security tools or systems.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters for pagination such as page number and items per page.
Path Parameters Path parameters including the user ID or username to specify which user's keys 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 authentication credential

Troubleshooting

  • Ensure the user_id path parameter is correctly set to a valid user ID or username; otherwise, the API will return an error.
  • Verify that the GitLab API authentication credentials are correctly configured and have sufficient permissions to access user keys.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct and reachable.

Links

Discussion