GitLab API

GitlabTool

Actions1000

Overview

This node operation interacts with the GitLab API to retrieve container registry repositories for a specific project. It is useful for DevOps and development teams who need to manage or audit container images stored in GitLab's container registry associated with their projects. For example, it can be used to list all container repositories for a project, including pagination and filtering options such as including tags or tag counts.

Use Case Examples

  1. Retrieve all container registry repositories for a project with ID '123'.
  2. Fetch container registry repositories with pagination, e.g., page 2 with 50 items per page.
  3. Include tags and tag counts in the response to get detailed repository information.

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 to control pagination and filtering of the container registry repositories.
Path Parameters Path parameters required for the API endpoint, specifically the project ID.

Output

JSON

  • repositories - List of container registry repositories for the specified project.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID is correctly provided and URL-encoded if necessary.
  • Verify that the authentication token has sufficient permissions to access the container registry of the project.
  • Check the base URL if using a self-hosted GitLab instance instead of gitlab.com.
  • Common errors include 401 Unauthorized (authentication issues) and 404 Not Found (invalid project ID or no access).

Links

Discussion