GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves deploy keys from the GitLab API (version 4). It is useful for scenarios where you need to list or manage deploy keys associated with GitLab projects, such as automating the retrieval of public or private deploy keys for security audits or integration purposes.

Use Case Examples

  1. Fetching a paginated list of deploy keys to display in a dashboard.
  2. Filtering deploy keys to only show those that are public for compliance checks.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API requests are sent.
Method HTTP method used for the API request, default is GET.
Query Parameters Optional query parameters to filter or paginate the deploy keys list.

Output

JSON

  • id - Unique identifier of the deploy key.
  • title - Title or name 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.
  • public - Boolean indicating if the deploy key is public.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the GitLab API key credential is correctly configured and has sufficient permissions to access deploy keys.
  • Verify the baseUrl is correct and accessible, especially if using a self-hosted GitLab instance.
  • Check query parameters for correct types and values to avoid API errors.
  • Common error messages include authentication failures (401 Unauthorized) and invalid parameter errors (400 Bad Request). Resolving these typically involves verifying credentials and parameter formats.

Links

Discussion