GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves information about a specific PyPi package within a GitLab group using the GitLab API v4. It is useful for users who want to access package details hosted in a GitLab group's PyPi repository, such as package metadata or availability. For example, a developer or DevOps engineer can use this node to automate fetching package information for deployment or auditing purposes.

Use Case Examples

  1. Fetch details of a PyPi package named 'my.pypi.package' in a GitLab group with ID 12345.
  2. Automate checking the availability of a PyPi package in a GitLab group before deployment.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the API 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 containing the package.

Output

JSON

  • packageDetails - Details of the PyPi package retrieved from the GitLab group.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID and package name are correctly specified; incorrect values will result in errors or empty responses.
  • If authentication is enabled, verify that the GitLab API key is valid and has sufficient permissions to access the group's packages.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.

Links

Discussion