GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves a specific SSH key of a user from the GitLab API. It is useful for scenarios where you need to access details about a user's SSH key, such as verifying key information or managing user access keys programmatically. For example, an admin could use this to fetch the details of a particular SSH key associated with a user to audit or update permissions.

Use Case Examples

  1. Fetch SSH key details for a user by providing the user ID and the SSH key ID.
  2. Use in automation workflows to verify user SSH keys before granting access.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication Type of authentication used, here it is GitLab API authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters to specify the user ID and the SSH key ID for the request.

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 for authentication

Troubleshooting

  • Ensure the user ID and SSH key ID are correct and exist in the GitLab instance.
  • Check that the GitLab API credentials are valid and have sufficient permissions to access user keys.
  • If skipping authentication, verify that the endpoint supports unauthenticated access, otherwise the request will fail.

Links

Discussion