GitLab API

GitlabTool

Actions905

Overview

This node interacts with the GitLab API to retrieve Composer packages for a specific group using the GitLab API v4 endpoint. It is useful for automating the retrieval of package information from GitLab groups, which can be beneficial in CI/CD pipelines, package management automation, or integration workflows involving GitLab repositories.

Use Case Examples

  1. Retrieve all Composer packages for a given GitLab group by specifying the group's ID or URL-encoded path.
  2. Automate the monitoring of package versions within a GitLab group by periodically fetching package data.

Properties

Name Meaning
Skip Authentication Determines whether to bypass authentication when making the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to which the API requests are sent.
Method The HTTP method used for the API request, defaulting to GET.
Path Parameters Parameters included in the API request path, specifically the group ID or URL-encoded path to identify the group whose Composer packages are being retrieved.

Output

JSON

  • response - The JSON response from the GitLab API containing the list of Composer packages for the specified group.

Dependencies

  • GitLab API credentials for authentication

Troubleshooting

  • Ensure the group ID or URL-encoded path is correctly specified in the path parameters to avoid 404 errors.
  • If authentication is enabled, verify that the GitLab API credentials are valid and have sufficient permissions to access the group's packages.
  • Check the baseUrl property to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion