List all Terraform state protection rules for a project
GET
/api/v4/projects/{id}/terraform/state_protection_rules
Lists all Terraform state protection rules for a project. This feature was introduced in GitLab 18.11.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”OK
Media typeapplication/json
object
id
integer format: int64
project_id
integer format: int64
state_name
string
minimum_access_level_for_write
string
allowed_from
string
Example
{ "id": 1, "project_id": 1, "state_name": "production", "minimum_access_level_for_write": "maintainer", "allowed_from": "ci_only"}Bad Request
Unauthorized
Forbidden
Not Found