GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves deploy keys for a specific project from the GitLab API (version 4). It is useful for users who want to programmatically access the deploy keys associated with their GitLab projects, for example, to audit keys or automate deployment processes.

Use Case Examples

  1. Fetch deploy keys for a project with ID '123' to verify which keys have access.
  2. Automate retrieval of deploy keys to integrate with a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip authentication when making 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 connect to, defaulting to https://gitlab.com.
Method HTTP method to use for the API request, defaulting to GET.
Query Parameters Optional query parameters for pagination: 'page' to specify the current page number and 'per_page' to specify the number of items per page.
Path Parameters Path parameter 'id' specifying the ID or URL-encoded path of the project owned by the authenticated user.

Output

JSON

  • deployKeys - Array of deploy keys retrieved from the specified GitLab project.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible by the authenticated user.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to access project deploy keys.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • If pagination parameters are used, ensure they are valid integers to avoid request errors.

Links

Discussion