GitLab API

GitlabTool

Actions905

Overview

This node operation performs an authorized PUT request to the GitLab API to authorize access to a specific Terraform module file version within a project. It is useful for managing Terraform modules stored in GitLab's package registry, particularly when you need to programmatically authorize access to module files for specific module versions in infrastructure automation workflows.

Use Case Examples

  1. Automating Terraform module version file authorization in a CI/CD pipeline.
  2. Managing access permissions for Terraform modules in GitLab projects via n8n workflows.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, typically a GitLab API key.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is PUT.
Path Parameters Parameters required in the API path to identify the project and module.

Output

JSON

  • response - The JSON response from the GitLab API indicating the authorization status or details of the Terraform module file version authorization.

Dependencies

  • GitLab API key credential for authentication.

Troubleshooting

  • Ensure the project ID and module details are correct to avoid 404 errors.
  • Authentication errors may occur if the API key is invalid or missing; verify credentials.
  • Check that the HTTP method is set to PUT as required by the operation.
  • Network issues or incorrect baseUrl can cause connection failures.

Links

Discussion