GitLab API icon

GitLab API

Gitlab

Actions880

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 a GitLab instance, such as fetching keys for security reviews or automation scripts that manage 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 dashboards.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication The authentication method used, defaulting to GitLab API credentials, hidden if Skip Authentication is true.
baseUrl The base URL of the GitLab instance to which the API requests are sent, default is https://gitlab.com.
Method HTTP method to use for the API request, default is GET.
Query Parameters Optional query parameters for pagination: page number and items per page.
Path Parameters Path parameter specifying the user ID or username whose SSH keys are to be retrieved.

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 credentials

Troubleshooting

  • Ensure the user_id path parameter is correctly set to a valid user ID or username; otherwise, the API will return an error.
  • If authentication is required and Skip Authentication is false, ensure valid GitLab API credentials are configured.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • Pagination parameters (page and per_page) should be valid integers; invalid values may cause API errors.

Links

Discussion