GitLab API icon

GitLab API

Gitlab

Actions880

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 for automation, monitoring, or integration purposes.

Use Case Examples

  1. Retrieve metadata of a container registry repository by specifying its ID to monitor repository details.
  2. Fetch container registry repository information including tags and size to integrate with a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use if authentication is not skipped.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request (GET, POST, PUT, DELETE, HEAD, PATCH).
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 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 container registry repository.
  • location - The location URL of the container registry repository.
  • 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 credential

Troubleshooting

  • Ensure the repository ID is correctly provided in the path parameters; missing or incorrect ID will cause the request to fail.
  • Verify that the authentication credentials are valid and have sufficient permissions to access the container registry repository.
  • 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 strings or omitted if not needed.

Links

Discussion