GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves the versions of a specific Terraform module from the GitLab Terraform Registry. It is useful for users who want to programmatically access version information of Terraform modules hosted on GitLab, enabling automation in infrastructure management and version tracking.

Use Case Examples

  1. A DevOps engineer automates the retrieval of all available versions of a Terraform module to ensure deployment scripts use the latest stable version.
  2. A CI/CD pipeline fetches module version details to validate compatibility before applying infrastructure changes.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use if authentication is not skipped.
baseUrl The base URL of the GitLab instance to send the API request to.
Method The HTTP method to use for the API request.
Path Parameters Parameters to specify the module namespace, module name, and module system for the API request.

Output

JSON

  • version - The version identifier of the Terraform module.
  • status - The status of the module version.
  • created_at - The creation timestamp of the module version.
  • updated_at - The last update timestamp of the module version.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the module_namespace, module_name, and module_system path parameters are correctly set; otherwise, the API request will fail.
  • If authentication is required and skipped, the request may be unauthorized; verify the authentication settings.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion