GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves deploy keys for a specific project in GitLab using the GitLab API v4. 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 by specifying the project ID or URL-encoded path.
  2. Paginate through deploy keys by setting page and per_page query parameters.

Properties

Name Meaning
Skip Authentication If true, the node will skip using authentication for the API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, default is https://gitlab.com.
Method The HTTP method used for the API request, default is GET.
Query Parameters Optional query parameters for pagination: page number and items per page.
Path Parameters Path parameter specifying the project ID or URL-encoded path to identify the project.

Output

JSON

  • ``
    • id - The unique identifier of each deploy key.
    • title - The title of the deploy key.
    • key - The SSH 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 or URL-encoded path is correct to avoid 404 errors.
  • Verify that the API key has sufficient permissions to access project deploy keys.
  • Check network connectivity and baseUrl correctness if requests fail.
  • If pagination parameters are incorrect, the response may be incomplete or empty.

Links

Discussion