GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation interacts with the GitLab API to retrieve specific Terraform module information from a project's package registry. It is useful for users who want to programmatically access details about Terraform modules stored in GitLab, such as module versions and system types. For example, it can be used to fetch module metadata for infrastructure automation or integration into CI/CD pipelines.

Use Case Examples

  1. Fetching a specific Terraform module version details from a GitLab project to verify module availability before deployment.
  2. Automating the retrieval of Terraform module information to integrate with infrastructure as code workflows.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
Authentication Specifies the authentication method to use for the API request. Hidden unless Skip Authentication is false.
baseUrl The base URL of the GitLab instance to which the API request is sent. Defaults to https://gitlab.com.
Method The HTTP method used for the API request.
Query Parameters Parameters sent in the query string of the API request.
Path Parameters Parameters included in the API request path to specify the project and module details.

Output

JSON

  • id - The unique identifier of the Terraform module.
  • name - The name of the Terraform module.
  • version - The version of the Terraform module.
  • description - Description of the Terraform module.
  • created_at - Timestamp when the module version was created.
  • updated_at - Timestamp when the module version was last updated.
  • project_id - The ID of the GitLab project containing the module.
  • module_system - The system type of the module.

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure the project ID and module details are correct to avoid 404 Not Found errors.
  • Verify that the authentication token has sufficient permissions to access the project's package registry.
  • Check the base URL if using a self-hosted GitLab instance to ensure the API endpoint is reachable.
  • If the module version is not found, confirm that the version exists in the project's Terraform module registry.

Links

Discussion