GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to retrieve information about PyPi packages for a specific project using the API endpoint `/api/v4/projects/{id}/packages/pypi/simple/*package_name`. It is useful for automating the retrieval of package details from GitLab projects, particularly for managing Python package dependencies hosted on GitLab's package registry.

Use Case Examples

  1. A developer wants to fetch metadata about a PyPi package named `my.pypi.package` from a GitLab project with ID `12345` to automate dependency checks in a CI/CD pipeline.
  2. A DevOps engineer uses this node to integrate GitLab package information into a monitoring dashboard that tracks package versions and availability.

Properties

Name Meaning
Skip Authentication Option to bypass authentication when making the API request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API requests are sent, defaulting to https://gitlab.com.
Method HTTP method used for the API request, defaulting to GET.
Query Parameters Query parameters for the API request, specifically the PyPi package name to retrieve.
Path Parameters Path parameters for the API request, specifically the project ID or URL-encoded path.

Output

JSON

  • response - The JSON response from the GitLab API containing details about the specified PyPi package for the project.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and package name are correctly specified and URL-encoded if necessary.
  • Verify that the GitLab API key credential has sufficient permissions to access the project's package registry.
  • If skipping authentication, confirm that the GitLab instance allows unauthenticated access to the package information.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion