GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves access requests for a specific project in GitLab using the GitLab API. It is useful for scenarios where you need to manage or review user access requests to a project, such as in project administration or access control workflows. For example, a project manager can use this node to list all pending access requests to decide whom to grant access.

Use Case Examples

  1. Retrieve access requests for a project with ID '12345' to review pending user access.
  2. Automate the process of fetching access requests to notify project owners about new requests.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access.
Authentication Type of authentication used for the request, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters to control pagination of the access requests list, including 'page' and 'per_page'.
Path Parameters Path parameter specifying the project ID or URL-encoded path to identify the project whose access requests are being retrieved.

Output

JSON

  • access_requests - List of access requests for the specified project
  • pagination
    • page - Current page number of the results
    • per_page - Number of items per page
    • total - Total number of access requests available

Dependencies

  • GitLab API key credential

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 read project access requests.
  • If skipping authentication, confirm that the GitLab instance allows unauthenticated access to the requested resource.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion