GitLab API icon

GitLab API

Gitlab

Actions1062

Terraform_state → deleteApiV4ProjectsIdTerraformStateNameLock

AI-generated

Summary

Delete a Terraform state lock for a GitLab project via the GitLab API.

Inputs

  • id (required) — The ID or URL-encoded path of the project (path parameter).
  • name (required) — The Terraform state name (integer, path parameter).
  • ID — Terraform state lock ID (query parameter).

Output shape

The HTTP response body returned by GitLab after deleting the lock (typically a JSON object indicating success or the deleted lock details).

If the request fails, an error is thrown.

Examples

Example 1: Delete lock with ID 123 for project 42 and state name 'default'

Set path parameter 'id' to '42', 'name' to '0' (or the integer state name), query parameter 'ID' to '123', and ensure gitlabApi credential is configured.

Links

Discussion