Skip to content

Retrieve a Terraform state

GET
/api/v4/projects/{id}/terraform/state/{name}

Retrieves a Terraform state by name for a specified project.

id
required
One of:
string

The ID or URL-encoded path of the project

name
required
string

The name of a Terraform state

ID
string
nullable <= 255 characters

Terraform state lock ID

OK

Empty state

Bad Request

Forbidden

Not found

Validation failure