GitLab API

GitlabTool

Actions1000

Overview

This node operation interacts with the GitLab API to retrieve information about a specific Terraform module within a project. It is useful for users who want to programmatically access details about Terraform modules stored in GitLab's package registry, such as module metadata or configuration. For example, a DevOps engineer might use this node to automate the retrieval of module details for infrastructure as code workflows.

Use Case Examples

  1. Retrieve Terraform module details by specifying the project ID, module name, and module system.
  2. Use query parameters to control Terraform get redirection behavior.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters for the request, including 'terraform-get' flag to control Terraform get redirection.
Path Parameters Required path parameters to specify the project ID, module name, and module system for the Terraform module.

Output

JSON

  • id - The ID or full path of the project.
  • module_name - The name of the Terraform module.
  • module_system - The system type of the Terraform module.
  • terraform-get - Optional query parameter indicating Terraform get redirection flag.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID, module name, and module system are correctly specified to avoid 404 errors.
  • If authentication is required, verify that the GitLab API credentials are correctly configured and valid.
  • Check the base URL if connecting to a self-hosted GitLab instance to avoid connection errors.

Discussion