GitLab API

GitlabTool

Actions1000

Overview

This node operation interacts with the GitLab API to retrieve detailed information about a specific container registry repository by its ID. It supports optional query parameters to include tags, tags count, and size information in the response. This operation is useful for DevOps and development teams managing container images in GitLab's container registry, enabling them to programmatically access repository metadata and manage container images efficiently.

Use Case Examples

  1. Retrieve metadata of a container registry repository by specifying its ID.
  2. Include tags and size information in the repository details to monitor container image usage.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method HTTP method used for the API request, default is GET.
Query Parameters Optional query parameters to customize the API request, including tags, tags_count, and size to include respective information in the response.
Path Parameters Path parameters specifying the repository ID to retrieve.

Output

JSON

  • id - The unique identifier of the container registry repository.
  • name - The name of the repository.
  • path - The path of the repository in the container registry.
  • tags - List of tags associated with the repository, if requested.
  • tags_count - The count of tags in the repository, if requested.
  • size - The size of the repository, if requested.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the repository ID is correctly provided in the path parameters; missing or incorrect ID will cause errors.
  • Verify that the GitLab API credentials are valid and have sufficient permissions to access container registry repositories.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • If optional query parameters (tags, tags_count, size) are used, ensure they are correctly formatted as boolean or string values as expected by the API.

Links

Discussion