GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation authorizes a NuGet package for a specific project in GitLab by sending a PUT request to the GitLab API endpoint `/api/v4/projects/{id}/packages/nuget/authorize`. It is useful for automating package authorization workflows in CI/CD pipelines or project management tasks where NuGet package access needs to be controlled programmatically.

Use Case Examples

  1. Automate NuGet package authorization for a project during deployment.
  2. Integrate GitLab package authorization into a custom DevOps workflow.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip using authentication for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but for this operation it is PUT.
Path Parameters Collection of path parameters, specifically the project ID or URL-encoded path required to identify the project for NuGet package authorization.

Output

JSON

  • response - The JSON response from the GitLab API after authorizing the NuGet package for the specified project.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and URL-encoded if necessary.
  • Verify that the GitLab API key credential has sufficient permissions to authorize NuGet packages for the project.
  • If skipping authentication, the request may fail due to lack of authorization.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion