GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node interacts with the GitLab API to retrieve specific Terraform module information from the Terraform registry. It is designed to fetch details about a Terraform module version based on the module's namespace, name, system, and version. This is useful for automation workflows that need to integrate Terraform module data from GitLab, such as infrastructure automation, version tracking, or module validation.

Use Case Examples

  1. Retrieve details of a specific Terraform module version to verify its configuration before deployment.
  2. Automate the process of fetching module metadata for use in CI/CD pipelines.
  3. Integrate Terraform module version information into monitoring or reporting tools.

Properties

Name Meaning
Skip Authentication Determines whether to bypass authentication when making the API request.
Authentication Specifies the authentication method to use, hidden if Skip Authentication is true.
baseUrl The base URL of the GitLab instance to connect to, defaulting to https://gitlab.com.
Method HTTP method to use for the API request.
Query Parameters Parameters sent in the query string of the request, including the required module_version.
Path Parameters Parameters included in the URL path, including module_namespace, module_name, and module_system.

Output

JSON

  • module_namespace - The namespace or group ID/slug of the Terraform module.
  • module_name - The name of the Terraform module.
  • module_system - The system type of the Terraform module.
  • module_version - The version of the Terraform module requested.
  • response - The JSON response from the GitLab API containing the module details.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the module_namespace, module_name, module_system, and module_version parameters are correctly set and valid.
  • Verify that the GitLab API credentials are correctly configured and have the necessary permissions.
  • Check the baseUrl to ensure it points to the correct GitLab instance.
  • If skipping authentication, ensure the API endpoint allows unauthenticated access.
  • Common errors include 404 Not Found if the module or version does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion