GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation authorizes access to a specific Conan package file within a GitLab project using the GitLab API. It is designed to handle authorization requests for files related to Conan packages, which are used in C++ package management. This operation is useful for developers and DevOps teams managing Conan packages in GitLab, enabling them to programmatically authorize access to package files such as conanfile.py, conanmanifest.txt, or conaninfo.txt.

Use Case Examples

  1. Authorizing access to a Conan package file before downloading or modifying it in a CI/CD pipeline.
  2. Automating package file authorization as part of a larger workflow managing Conan packages in GitLab projects.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request (boolean). Defaults to false.
Authentication The authentication method used, defaulting to GitLab API key authentication. Hidden unless Skip Authentication is true.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, defaulting to GET. Options include GET, POST, PUT, DELETE, HEAD, PATCH.
Path Parameters Collection of path parameters required to identify the specific Conan package file to authorize. Includes project ID, package name, version, username, channel, recipe revision, Conan package reference, package revision, and file name.

Output

JSON

  • statusCode - HTTP status code of the authorization response
  • body - Response body containing authorization details or error information

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure all required path parameters are provided and correctly formatted, as missing or incorrect parameters will cause request failures.
  • Authentication errors may occur if the GitLab API key is missing, invalid, or lacks sufficient permissions. Verify the API key and its scopes.
  • HTTP method must be set correctly; typically, PUT is used for this authorization operation. Using an incorrect method may result in errors.

Links

Discussion