GitLab API icon

GitLab API

Gitlab

Actions880

Overview

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

Use Case Examples

  1. Fetch details of an SSH key by its ID to verify its properties.
  2. Retrieve a user's SSH key information for audit or management purposes.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used for the request, defaulting to GitLab API key.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method HTTP method used for the request, default is GET.
Path Parameters Parameters to be included in the request path, specifically the SSH key ID to fetch.

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 key credential

Troubleshooting

  • Ensure the key_id path parameter is provided and is a valid integer; otherwise, the request will fail.
  • If authentication is skipped, the request may not return user-specific data or may be unauthorized.
  • Verify the baseUrl is correct and accessible to avoid connection errors.

Discussion