GitLab API icon

GitLab API

Gitlab

Actions880

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 the SSH key details for a user with ID 123 and key ID 456 to verify key permissions or status.
  2. Retrieve a user's SSH key information to display in an admin dashboard.

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 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 correct and exist in the GitLab instance to avoid 404 errors.
  • If authentication is required, verify that the GitLab API key credential is correctly configured and has sufficient permissions.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the URL is correct.

Links

Discussion