Conan v2 API
- Tier: Free, Premium, Ultimate
- Offering: GitLab.com, GitLab Self-Managed, GitLab Dedicated
For Conan v1 operations, see Conan v1 API.
Use this API to interact with the Conan v2 package manager. For more information, see Conan packages in the package registry.
Generally, these endpoints are used by the Conan 2 package manager client and are not meant for manual consumption.
For instructions on how to upload and install Conan packages from the GitLab package registry, see the Conan package registry documentation and Conan 2 package manager client.
These endpoints do not adhere to the standard API authentication methods. See each route for details on how credentials are expected to be passed. Undocumented authentication methods might be removed in the future.
The Conan registry is not FIPS compliant and is disabled when FIPS mode is enabled. These endpoints will all return 404 Not Found.
Route prefix
The project-level prefix is used to make requests in a single project’s scope. The examples in this document all use the project-level prefix.
/projects/:id/packages/conan
Attribute | Type | Required | Description |
---|---|---|---|
id | string | yes | The project ID or full project path. |
Get latest recipe revision
The availability of this feature is controlled by a feature flag. For more information, see the history.
Get the revision hash and creation date of the latest package recipe.
GET <route_prefix>/v2/conans/:package_name/:package_version/:package_username/:package_channel/latest
Attribute | Type | Required | Description |
---|---|---|---|
package_name | string | yes | Name of a package. |
package_version | string | yes | Version of a package. |
package_username | string | yes | Conan username of a package. This attribute is the + -separated full path of your project. |
package_channel | string | yes | Channel of a package. |
curl --header "Authorization: Bearer <authenticate_token>" "https://gitlab.example.com/api/v4/projects/9/packages/conan/v2/conans/my-package/1.0/my-group+my-project/stable/latest"
Example response:
{
"revision" : "75151329520e7685dcf5da49ded2fec0",
"time" : "2024-12-17T09:16:40.334+0000"
}
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support