GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves a specific PyPi package file from a GitLab project using the GitLab API. It is useful for automating the download or inspection of PyPi package files stored in GitLab projects, especially when you need to verify or use a package file identified by its SHA256 checksum and file identifier.

Use Case Examples

  1. Automate fetching a PyPi package file from a GitLab project for deployment or analysis.
  2. Verify the integrity of a PyPi package file by retrieving it using its SHA256 checksum.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication 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.
Parameter Schema Defines the required parameters for the API call: project ID or URL-encoded path, PyPi package file identifier, and the SHA256 checksum of the package file.
Request Body Schema No request body is required for this operation.
Request Path The API endpoint path template for retrieving the PyPi package file.
Query Parameters Query parameters for the request, specifically the file identifier of the PyPi package file.
Path Parameters Path parameters for the request, including the project ID and the SHA256 checksum of the package file.

Output

JSON

  • id - The ID or URL-encoded path of the project.
  • file_identifier - The PyPi package file identifier.
  • sha256 - The SHA256 checksum of the PyPi package file.
  • package_file - The retrieved PyPi package file data.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and SHA256 checksum are correct and URL-encoded if necessary.
  • Verify that the file identifier matches exactly the PyPi package file name stored in the project.
  • Check that the GitLab API key has sufficient permissions to access the project and package files.
  • Common errors include 404 Not Found if the project or file does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion