GitLab API

GitlabTool

Actions905

Overview

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

Use Case Examples

  1. Fetch details of an SSH key by providing its ID to audit or verify key information.
  2. Use in automation workflows to dynamically retrieve SSH key data for security checks.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key.
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 key credential

Troubleshooting

  • Ensure the SSH key ID provided in the path parameters is valid and exists in the GitLab instance.
  • If authentication is enabled, verify that the GitLab API key credential is correctly configured and has sufficient permissions to access SSH key details.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion