projects
List all Terraform state protection rules for a project
Lists all Terraform state protection rules for a project. This feature was introduced in GitLab 18.11.
get/api/v4/projects/{id}/terraform/state_protection_rules
Request
- Base URLhttps://gitlab.com
- Authnone declared
Path parameters
idstring required
The ID or URL-encoded path of the project
Response
List all Terraform state protection rules for a project
Example response
[
{
"id": 1,
"project_id": 1,
"state_name": "production",
"minimum_access_level_for_write": "maintainer",
"allowed_from": "ci_only"
}
]Changes
No recorded changes to this operation across all 5 revisions of this API.