GitLab API icon

GitLab API

Gitlab

Actions880

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 to monitor usage or automate cleanup tasks.

Use Case Examples

  1. Retrieve all container registry repositories for a project by specifying the project ID.
  2. Paginate through container registry repositories by setting page and per_page query parameters.
  3. Include tags or tags count in the response by setting the respective query parameters.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, hidden unless Skip Authentication is false.
baseUrl The base URL of the GitLab instance to send the API request to.
Method HTTP method to use for the API request.
Query Parameters Optional query parameters to customize the API request, such as pagination and filtering options.
Path Parameters Path parameters required for the API endpoint, specifically the project ID.

Output

JSON

  • response - The JSON response from the GitLab API containing the container registry repositories for the specified project.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID is correctly specified and URL-encoded if necessary to avoid 404 errors.
  • Verify that the authentication credentials are valid and have sufficient permissions to access the container registry of the project.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • If pagination parameters are used, ensure they are valid integers to avoid request errors.

Links

Discussion