GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation allows users to authorize a file for a specific version of a Terraform module within a GitLab project. It is useful for managing access control to Terraform module files stored in GitLab, particularly when working with infrastructure as code and Terraform module registries. For example, a DevOps engineer can use this operation to programmatically authorize access to a Terraform module file version for deployment automation.

Use Case Examples

  1. Authorize a specific version of a Terraform module file in a GitLab project to enable automated infrastructure deployment.
  2. Manage access permissions for Terraform modules stored in GitLab to ensure secure and controlled usage.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access.
Authentication Type of authentication used, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, defaulting to GET but supporting POST, PUT, DELETE, HEAD, PATCH.
Path Parameters Parameters required in the request path to identify the project and module details, including project ID or full path, module name, and module system.

Output

JSON

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

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID or full path is correct to avoid 404 errors.
  • Verify that the module name and system match the existing Terraform module in the project.
  • Check that the API key has sufficient permissions to authorize module files.
  • If skipping authentication, confirm that the GitLab instance allows unauthenticated access for this operation.

Links

Discussion