GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves tags from a specific container registry repository within a GitLab project. It is useful for users who want to list or manage container image tags stored in GitLab's container registry associated with a project. For example, a DevOps engineer might use this to automate the retrieval of container tags for deployment or cleanup tasks.

Use Case Examples

  1. Retrieve all tags for a container registry repository in a GitLab project to monitor available image versions.
  2. Automate the listing of container tags to integrate with CI/CD pipelines for deployment automation.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters for pagination, including page number and items per page.
Path Parameters Required path parameters identifying the project and repository.

Output

JSON

  • tags - List of tags retrieved from the container registry repository.
  • pagination - Pagination details such as current page, total pages, and items per page.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID and repository ID are correct and accessible with the provided credentials.
  • Verify that the GitLab API base URL is correct, especially if using a self-hosted GitLab instance.
  • Check that the authentication token has sufficient permissions to access the container registry API endpoints.
  • Common errors include 401 Unauthorized (invalid or missing credentials), 404 Not Found (incorrect project or repository ID), and 400 Bad Request (invalid query parameters).

Links

Discussion