GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves the SSH keys associated with a specific GitLab user by their user ID or username. It is useful for managing or auditing user access keys in GitLab, such as fetching all SSH keys for a user to verify or update access permissions.

Use Case Examples

  1. Fetch SSH keys for a user with ID 123 to audit their access keys.
  2. Retrieve SSH keys for a username 'john_doe' to manage their GitLab access.

Properties

Name Meaning
Skip Authentication If true, the node skips authentication for the request.
Authentication The authentication method used for the request, typically an API key credential for GitLab.
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.
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 request will fail.
  • If authentication is required and not provided or invalid, the node will return an authentication error.
  • Pagination parameters (page and per_page) should be valid integers; invalid values may cause unexpected results or errors.

Links

Discussion