Method: projects.locations.deployments.revisions.exportState

Exports Terraform state file from a given revision.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



Required. The parent in whose context the statefile is listed. The parent value is in the format: 'projects/{projectId}/locations/{location}/deployments/{deployment}/revisions/{revision}'. It takes the form projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Statefile.

Authorization scopes

Requires the following OAuth scope:


For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the parent resource:


For more information, see the IAM documentation.