GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to retrieve PyPi package information for a specific group using the API endpoint `/api/v4/groups/{id}/-/packages/pypi/simple/*package_name`. It is useful for automating the retrieval of PyPi package details hosted within GitLab groups, which can be beneficial for DevOps workflows, package management, and continuous integration pipelines.

Use Case Examples

  1. Retrieve PyPi package metadata for a group to verify package versions before deployment.
  2. Automate fetching of PyPi package details for auditing or reporting purposes within a GitLab group.

Properties

Name Meaning
Skip Authentication Determines whether to 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, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET.
Query Parameters.package_name The name of the PyPi package to retrieve.
Path Parameters.id The ID or full path of the GitLab group to query.

Output

JSON

  • response - The JSON response containing the PyPi package information retrieved from the GitLab API.

Dependencies

  • GitLab API key credential for authentication unless skipping authentication.

Troubleshooting

  • Ensure the group ID or full path is correct and accessible with the provided credentials.
  • Verify that the PyPi package name is correctly specified and exists within the group.
  • If skipping authentication, confirm that the GitLab instance allows unauthenticated access to the endpoint.
  • Common errors include 401 Unauthorized (check API key and permissions), 404 Not Found (check group ID and package name), and 400 Bad Request (check parameter formatting).

Links

Discussion