GitLab API

GitlabTool

Actions1000

Overview

This node operation authorizes a NuGet symbol package for a specific project in GitLab by sending a PUT request to the GitLab API endpoint `/api/v4/projects/{id}/packages/nuget/symbolpackage/authorize`. It is useful for managing NuGet package symbol authorization within GitLab projects, enabling secure package handling and integration.

Use Case Examples

  1. Authorize a NuGet symbol package for a project by specifying the project ID and sending the authorization request to GitLab.
  2. Automate the process of symbol package authorization in CI/CD pipelines to ensure symbol packages are properly authorized for debugging and diagnostics.

Properties

Name Meaning
Skip Authentication Option to skip API authentication for the request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method used for the request, default is GET but can be set to PUT for this operation.
Path Parameters Parameters included in the request path, specifically the project ID for this operation.

Output

JSON

  • statusCode - HTTP status code returned by the API after the authorization request.
  • responseBody - Response body returned by the API, typically containing authorization confirmation or error details.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and URL-encoded if necessary.
  • Verify that the GitLab API key used for authentication has sufficient permissions to authorize NuGet symbol packages.
  • Check the base URL to confirm it points to the correct GitLab instance.
  • If skipping authentication, ensure the endpoint allows unauthenticated requests, otherwise the request will fail.

Links

Discussion