GitLab API

GitlabTool

Actions1000

Overview

This node operation interacts with the GitLab API to retrieve information about a specific PyPi package within a GitLab project. It is useful for scenarios where you need to fetch package details from a project's PyPi repository, such as automating package management or integrating package data into workflows.

Use Case Examples

  1. Fetching metadata for a PyPi package named 'my.pypi.package' in a specific GitLab project identified by its ID.
  2. Automating the retrieval of package information to verify package versions or availability within a CI/CD pipeline.

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 authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent, defaulting to https://gitlab.com.
Method The HTTP method used for the API request, defaulting to GET.
Query Parameters Parameters sent in the query string of the API request, specifically the PyPi package name to retrieve.
Path Parameters Parameters included in the URL path, specifically the project ID or URL-encoded path.

Output

JSON

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

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID and package name are correctly specified and URL-encoded if necessary.
  • Verify that the GitLab API token has sufficient permissions to access the project's packages.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • If skipping authentication, confirm that the API endpoint allows unauthenticated access.

Links

Discussion