GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation authorizes RPM package uploads for a specific project in GitLab via the GitLab API. It is useful for automating package management workflows, such as allowing CI/CD pipelines or automation scripts to securely upload RPM packages to a GitLab project's package registry. For example, a DevOps engineer can use this node to programmatically authorize package uploads during deployment processes.

Use Case Examples

  1. Authorize RPM package upload for project ID '123' to enable automated package deployment.
  2. Use in CI/CD pipeline to authenticate package uploads to GitLab project registry.

Properties

Name Meaning
Skip Authentication Option to skip API authentication, useful for public or unauthenticated requests.
Authentication Selects the authentication method, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but POST is used for this operation.
Path Parameters Parameters to be included in the request path, specifically the project ID or URL-encoded path.

Output

JSON

  • response - The JSON response from the GitLab API after authorizing the RPM package upload.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID provided in path parameters is correct and accessible with the authenticated user.
  • Verify that the GitLab API key credential has sufficient permissions to authorize package uploads.
  • Check the baseUrl is correctly set to the GitLab instance URL if using a self-hosted GitLab.
  • Common errors include 401 Unauthorized if authentication fails, 404 Not Found if the project ID is invalid, and 400 Bad Request if request parameters are malformed.

Links

Discussion