GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves the list of protected tags for a specific project in GitLab using the GitLab API. It is useful for scenarios where you need to manage or audit protected tags within a project, such as in CI/CD pipelines or project management automation.

Use Case Examples

  1. Fetch all protected tags for a project to display in a dashboard.
  2. Automate the retrieval of protected tags to enforce tagging policies.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, typically an API key or token.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method The HTTP method used for the request, default is GET.
Query Parameters Optional query parameters for pagination, including page number and items per page.
Path Parameters Path parameters specifying the project ID or URL-encoded path to identify the project.

Output

JSON

  • id - The unique identifier of the protected tag.
  • name - The name of the protected tag.
  • create_access_levels - Access levels that can create the protected tag.
  • update_access_levels - Access levels that can update the protected tag.
  • delete_access_levels - Access levels that can delete the protected tag.

Dependencies

  • GitLab API authentication token or API key

Troubleshooting

  • Ensure the project ID or URL-encoded path is correct to avoid 404 errors.
  • Verify that the authentication token has sufficient permissions to access protected tags.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Pagination parameters should be valid integers; otherwise, the API may return errors or unexpected results.

Links

Discussion