GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation authorizes a file for a specific Terraform module version within a GitLab project. It is useful for managing access and permissions for Terraform modules stored in GitLab's Terraform Registry. For example, it can be used to programmatically authorize files related to infrastructure modules in CI/CD pipelines or automation workflows.

Use Case Examples

  1. Authorize a file for a Terraform module version in a GitLab project to control access during automated deployments.
  2. Manage Terraform module file permissions in GitLab Registry as part of infrastructure as code workflows.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaults to GitLab API credentials.
baseUrl Base URL for the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters to specify the project ID or full path, module name, and module system for the Terraform module.

Output

JSON

  • statusCode - HTTP status code of the response.
  • body - Response body containing authorization details or error information.

Dependencies

  • GitLab API credentials

Troubleshooting

  • Ensure the project ID, module name, and module system parameters are correctly specified to avoid 404 errors.
  • Authentication errors may occur if GitLab API credentials are missing or invalid; verify credentials are correctly configured.
  • Check that the HTTP method is set to PUT as required by this operation to avoid method not allowed errors.

Links

Discussion