GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to retrieve details of a specific SSH key associated with the authenticated user. It is useful for scenarios where you need to fetch information about a particular SSH key by its ID, such as managing user keys or verifying key details in automation workflows.

Use Case Examples

  1. Fetch details of an SSH key by its ID to verify its properties before deployment.
  2. Automate the retrieval of user SSH key information for audit or compliance purposes.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public endpoints or testing.
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 be included in the request path, specifically the SSH key ID to fetch.

Output

JSON

  • id - The ID 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 SSH key ID provided in the path parameters is valid and exists; otherwise, the API will return an error.
  • If authentication is skipped, the request may fail if the endpoint requires authentication.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.

Links

Discussion