Skip to content

Lock a Terraform state of a certain name

POST
/api/v4/projects/{id}/terraform/state/{name}/lock

Lock a Terraform state of a certain name

id
required
One of:
string

The ID or URL-encoded path of the project

name
required
string

The name of a Terraform state

Media type application/json
object
ID
required

Terraform state lock ID

string
nullable <= 255 characters
Operation
required

Terraform operation

string
nullable
Info
required

Terraform info

string
nullable
Who
required

Terraform state lock owner

string
nullable
Version
required

Terraform version

string
nullable
Created
required

Terraform state lock timestamp

string
nullable
Path
required

Terraform path

string
nullable
Example generated
{
"ID": "example",
"Operation": "example",
"Info": "example",
"Who": "example",
"Version": "example",
"Created": "example",
"Path": "example"
}

OK

Bad Request

Forbidden

Not found

Conflict

Validation failure