GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves a specific SSH key of a user from the GitLab API using the user's ID and the SSH key's ID. It is useful for scenarios where you need to access detailed information about a particular SSH key associated with a GitLab user, such as for auditing or managing user access keys.

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 or log SSH key information for GitLab users.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, default is false.
Authentication Type of authentication used, default is GitLab API key. Hidden if Skip Authentication is true.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters for the request path including user ID and SSH key ID.

Output

JSON

  • id - The ID of the SSH key.
  • title - The title of the SSH key.
  • key - The SSH public key content.
  • created_at - Timestamp when the SSH key was created.
  • expires_at - Timestamp when the SSH key expires, if any.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the user ID and SSH key ID are valid integers and correspond to existing resources in GitLab.
  • If authentication is required, verify that the GitLab API key credential is correctly configured and has sufficient permissions.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages include 404 Not Found if the user or key does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion