GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation interacts with the GitLab API to retrieve details of a specific package within a project. It is useful for scenarios where you need to fetch information about a particular package by specifying the project ID or URL-encoded path and the package ID. For example, it can be used to automate package management tasks or integrate package data retrieval into workflows.

Use Case Examples

  1. Retrieve package details for a given project and package ID to monitor package versions or metadata.
  2. Automate fetching package information as part of a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access scenarios.
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, defaulting to GET.
Path Parameters Parameters to specify the project ID or URL-encoded path and the package ID to identify the package to retrieve.

Output

JSON

  • id - The unique identifier of the package.
  • name - The name of the package.
  • version - The version of the package.
  • package_type - The type of the package.
  • created_at - The creation timestamp of the package.
  • updated_at - The last update timestamp of the package.
  • project_id - The ID of the project the package belongs to.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and package ID are correctly specified and URL-encoded if necessary.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to access the project and package data.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common error messages include 404 Not Found if the project or package does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion