GitLab API

GitlabTool

Actions1095

Terraform_state → getApiV4ProjectsIdTerraformStateName

AI-generated

Summary

Retrieves a Terraform state by project and state name using the configured HTTP method (GET by default). Provide the project ID or URL-encoded path and state name; an optional lock ID can be sent as a query parameter.

Inputs

  • Skip Authentication — Defaults to false; when enabled, skips GitLab API authentication.
  • Method — HTTP method for the request; defaults to GET.
  • Path Parameters (required) — Set Id to the project ID or URL-encoded path, and Name to the Terraform state name.
  • Query Parameters — Optionally set ID to the Terraform state lock ID.

Output shape

A single API response item.

The request targets /api/v4/projects/{id}/terraform/state/{name}. Response fields and body format depend on the GitLab API response.

Links

Discussion