GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves detailed information about a specific container registry repository in GitLab using the GitLab API v4. It is useful for DevOps engineers and developers who need to programmatically access metadata about container images stored in GitLab's container registry, such as tags, tag counts, and repository size. For example, it can be used to automate monitoring or auditing of container repositories within a CI/CD pipeline.

Use Case Examples

  1. Fetch metadata of a container registry repository by its ID to check tags and size before deployment.
  2. Automate retrieval of container repository details to integrate with a dashboard showing container usage statistics.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The 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 specify what details to include in the response.
Path Parameters Path parameters for the API request, specifically the repository ID to identify which container registry repository to retrieve.

Output

JSON

  • id - The unique identifier of the container registry repository.
  • name - The name of the container registry repository.
  • path - The path of the repository within the GitLab instance.
  • 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.
  • created_at - Timestamp when the repository was created.
  • updated_at - Timestamp when the repository was last updated.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the repository ID path parameter is correctly provided; missing or invalid ID will cause errors.
  • Verify that the baseUrl is correct and accessible; incorrect URLs will lead to connection failures.
  • If authentication is enabled, ensure the GitLab API key credential is valid and has sufficient permissions to access container registry repositories.
  • Check query parameters for correct boolean values; invalid values may cause the API to reject the request.

Links

Discussion