GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves the container registry repositories for a specific GitLab group using the GitLab API. It is useful for users who want to list or manage container images stored in the GitLab container registry associated with a group. For example, a DevOps engineer might use this 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 optional pagination parameters.
  2. Automate monitoring of container repositories within a GitLab group to track usage or perform maintenance tasks.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication if not skipped.
baseUrl The base URL of the GitLab instance to which the API requests are sent, defaulting to https://gitlab.com.
Method The HTTP method to use for the API request, defaulting to GET.
Query Parameters Optional query parameters for pagination, including 'page' for the current page number and 'per_page' for the number of items per page.
Path Parameters Path parameters including 'id', which is the ID or URL-encoded path of the GitLab group whose container registry repositories are being retrieved.

Output

JSON

  • repositories - List of container registry repositories for the specified GitLab group.
  • pagination
    • page - Current page number of the results.
    • per_page - Number of items per page in the results.

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure the 'id' path parameter is correctly set to the GitLab group ID or URL-encoded path; otherwise, the API request will fail.
  • If authentication is enabled, verify that the GitLab API credentials are valid and have sufficient permissions to access the group's container registry.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct and accessible.
  • Pagination parameters 'page' and 'per_page' should be valid integers; invalid values may cause errors or unexpected results.

Links

Discussion