Skip to content

Retrieve a recipe file

GET
/api/v4/projects/{id}/packages/conan/v2/conans/{package_name}/{package_version}/{package_username}/{package_channel}/revisions/{recipe_revision}/files/{file_name}

Retrieves a specified recipe file from the package registry. This feature was introduced in GitLab 17.8.

id
required
One of:
string

The ID or URL-encoded path of the project

package_name
required
string

Package name

Example
my-package
package_version
required
string

Package version

Example
1.0
package_username
required
string

Package username

Example
my-group+my-project
package_channel
required
string

Package channel

Example
stable
recipe_revision
required
string

Recipe revision

Example
df28fd816be3a119de5ce4d374436b25
file_name
required
string
>= 1 characters
Allowed values: conanfile.py conanmanifest.txt conan_sources.tgz conan_export.tgz conaninfo.txt conan_package.tgz

Package file name

Example
conanfile.py

OK

Bad Request

Unauthorized

Forbidden

Not Found