GitLab API icon

GitLab API

Gitlab

Actions1062

Conan_packages → getApiV4PackagesConanV1FilesPackageNamePackageVersionPackageUsernamePackageChannelRecipeRevisionExportFileName

AI-generated

Summary

Retrieve a specific Conan package file from GitLab's API by specifying package details and the target file name.

Inputs

  • package_name (required) — The name of the Conan package to retrieve.
  • package_version (required) — The version of the Conan package.
  • package_username (required) — The GitLab username or group owning the package.
  • package_channel (required) — The distribution channel of the package (e.g., stable).
  • recipe_revision (required) — The revision number of the Conan recipe.
  • file_name (required) — The name of the specific package file to download; must be one of: conanfile.py, conanmanifest.txt, conan_sources.tgz, conan_export.tgz, conaninfo.txt, or conan_package.tgz.
  • skipAuthentication — Whether to skip including authentication credentials (default is false).
  • baseUrl — Base URL to override the default GitLab instance URL (default is https://gitlab.com).
  • method — HTTP method to use for the request (default is GET, but others like POST, PUT, DELETE, HEAD, PATCH are available).

Output shape

a binary file representing the requested Conan package file

The response will contain the binary content of the specified file from the Conan package version. Authentication is required unless explicitly skipped. This operation uses a path-based API endpoint with all parameters required to uniquely identify the file. No pagination or additional envelope wrapping is involved.

Links

Discussion