GitLab API

GitlabTool

Actions1095

Terraform_state → postApiV4ProjectsIdTerraformStateNameLock

AI-generated

Summary

Sends a request to lock a Terraform state in GitLab using POST /api/v4/projects/{id}/terraform/state/{name}/lock. The implementation defines the base URL through the GitLab API credential; baseUrl is exposed with a https://gitlab.com default.

Inputs

  • Skip Authentication — Defaults to false. When enabled, skips the GitLab API authentication credential.
  • Base URL — Defaults to https://gitlab.com; the node implementation says the effective base URL is defined in the GitLab API credential.
  • Method — HTTP method selector, defaulting to GET in the UI. The operation path indicates a lock request; the selected method controls the request method.
  • Path Parameters (required) — Provide id (project ID or URL-encoded project path) and name (Terraform state name). The UI fields are strings.
  • Request body (required) — The operation schema declares a required body, but exposes no body fields in the provided properties.

Output shape

A single API response item, according to the OpenAPI tool node’s request behavior.

The source pack delegates request execution to OpenApiToolNode and does not show response parsing or a specific response schema. Response fields therefore depend on GitLab’s API response.

Links

Discussion