---
title: "POST /v1/{+parent}:importState"
method: POST
path: "/v1/{+parent}:importState"
tags: ["projects"]
---

# POST /v1/{+parent}:importState

`POST /v1/{+parent}:importState`

Imports Terraform state file in a given deployment. The state file does not take effect until the Deployment has been unlocked.

## Path parameters

- `parent` string, required

## Request body

- ImportStatefileRequest — A request to import a state file passed to a 'ImportStatefile' call.
  - `lockId` string, int64 — Required. Lock ID of the lock file to verify that the user who is importing the state file previously locked the Deployment.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/config.md) · [All operations](https://skmtc.net/google/apis/config/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/config/versions/22109f23b9eb/schema)
