GitLab API icon

GitLab API

Gitlab

Actions880

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 details about a deploy key associated with a project, such as verifying key information or managing project access keys.

Use Case Examples

  1. Fetching deploy key details for a project to audit access keys.
  2. Retrieving a deploy key to check its properties before updating or deleting it.

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 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 API path, including project ID and deploy key ID.

Output

JSON

  • id - The ID of the deploy key.
  • title - The title of the deploy key.
  • key - The actual deploy key string.
  • created_at - Timestamp when the deploy key was created.
  • can_push - Boolean indicating if the deploy key has push access.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and deploy key ID are correct and accessible by the authenticated user.
  • Check that the GitLab API key credential is valid and has sufficient permissions to access deploy keys.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated access to deploy keys, which is uncommon.

Links

Discussion