GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves a specific deploy key from a GitLab project using the GitLab API. It is useful for scenarios where you need to access or verify deploy keys associated with a project, such as for automation scripts managing project access or auditing keys.

Use Case Examples

  1. Get details of a deploy key by providing the project ID and the deploy key ID to verify its properties or status.
  2. Use in CI/CD pipelines to dynamically fetch deploy key information for deployment automation.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance to which the API request is sent, default is https://gitlab.com.
Method HTTP method used for the API request, default is GET.
Path Parameters Parameters used in the API request path to specify the project and deploy key IDs.

Output

JSON

  • id - The ID of the deploy key.
  • title - The title of the deploy key.
  • key - The SSH key content.
  • created_at - Timestamp when the deploy key was created.
  • can_push - Boolean indicating if the deploy key has push access.
  • fingerprint - Fingerprint of the deploy key.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and deploy key ID are correct and accessible by the authenticated user.
  • Check that the GitLab API key has sufficient permissions to read deploy keys.
  • If skipping authentication, the request may fail due to lack of access rights.

Links

Discussion