GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves container registry repositories for a specific GitLab group using the GitLab API v4. It is useful for users who want to list or manage container images stored in the container registry of a GitLab group. For example, a DevOps engineer might use this node to automate the retrieval of container repositories for auditing or cleanup purposes.

Use Case Examples

  1. Retrieve all container registry repositories for a GitLab group by specifying the group ID and pagination parameters.
  2. Automate monitoring of container repositories in a GitLab group to track usage or storage.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip using authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API requests are sent, defaulting to https://gitlab.com.
Method The HTTP method used for the API request, defaulting to GET.
Parameter Schema Defines the parameters for the API request including the group ID (path parameter), page number, and items per page (query parameters).
Request Body Schema Schema for the request body, which is null for this GET operation.
Request Path The API endpoint path for retrieving container registry repositories of a group, with a placeholder for the group ID.
Query Parameters Optional query parameters to control pagination: page number and number of items per page.
Path Parameters Path parameter specifying the group ID or URL-encoded path of the group accessible by the authenticated user.

Output

JSON

  • response - The JSON response containing the list of container registry repositories for the specified GitLab group.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID provided in the path parameters is correct and accessible by the authenticated user.
  • Verify that the API base URL is correct and reachable.
  • Check that the authentication credentials (GitLab API key) are valid and have sufficient permissions to access the group's container registry.
  • Pagination parameters (page and per_page) should be valid integers; otherwise, the API may return errors or unexpected results.

Links

Discussion