GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves the NuGet package index for a specified group in GitLab using the GitLab API v4. It is useful for automating the management and retrieval of NuGet packages within a GitLab group, enabling integration with CI/CD pipelines or package management workflows.

Use Case Examples

  1. Fetch the NuGet package index for a group by providing the group ID or full group path to automate package retrieval in a DevOps pipeline.
  2. Use in a workflow to monitor or audit NuGet packages available in a GitLab group repository.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method used for the request, default is GET.
Parameter Schema Schema defining the path parameter 'id' which is the group ID or full group path, required for the request.
Request Body Schema Schema for the request body, null for this GET operation.
Request Path The API endpoint path template for retrieving the NuGet package index for the group.
Path Parameters Collection of path parameters including 'id' which specifies the group ID or full group path.

Output

JSON

  • response - The JSON response from the GitLab API containing the NuGet package index data for the specified group.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the 'id' path parameter is correctly set to a valid group ID or full group path; otherwise, the API request will fail.
  • If authentication is required and skipped, the request may be unauthorized; verify the 'Skip Authentication' setting.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the correct API endpoint is targeted.
  • Common error messages include 401 Unauthorized (authentication issues), 404 Not Found (invalid group ID or path), and 500 Internal Server Error (server issues).

Links

Discussion