Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Tf Standard Backend

HTTP standard backend for Terraform

Show terraform state

get
Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: 0z
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: qh
workspacestringRequired

Workspace identifier

Example: workspace123
Query parameters
accountIdentifierstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: 7i
Responses
200

OK response.

application/json
string · binaryOptional
get/api/orgs/{org}/projects/{project}/workspaces/{workspace}/terraform-backend
GET /api/orgs/{org}/projects/{project}/workspaces/{workspace}/terraform-backend?accountIdentifier=7i HTTP/1.1
Host: localhost:80
Accept: */*
binary

Create terraform state

post
Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: 6
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: qm
workspacestringRequired

Workspace identifier

Example: workspace123
Query parameters
accountIdentifierstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: oin
IDstringOptional

If the backend is locked, this value must match the persisted terraform lock id.

Example: 1ac4b858-bf0b-8539-9d80-8c521f6423cf
Header parameters
Content-Lengthinteger · int64Optional

Size in bytes of the state.

Example: 4372884545713602000
Responses
200

OK response.

No content

post/api/orgs/{org}/projects/{project}/workspaces/{workspace}/terraform-backend
POST /api/orgs/{org}/projects/{project}/workspaces/{workspace}/terraform-backend?accountIdentifier=oin HTTP/1.1
Host: localhost:80
Accept: */*

No content

Lock workspace

post
Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: 7
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: y
workspacestringRequired

Workspace identifier

Example: workspace123
Query parameters
accountIdentifierstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: g1
Body
createdstringRequired

Time that the lock was taken.

Example: Inventore quaerat laudantium et repudiandae occaecati.
idstring · min: 1Required

Unique ID for the lock. Generated by the terraform cli.

Example: 1ac4b858-bf0b-8539-9d80-8c521f6423cf
infostringOptional

Extra information to store with the lock.

Default: ""Example: production workspace lock
operationstringRequired

Terraform operation.

Example: OperationTypePlan
pathstringOptional

Path to the state file when applicable.

Default: ""Example: /api/orgs/org1/projects/proj1/workspaces/production/data/fcdf0196-f5b3-49ab-87e3-ff102dfaf58c
versionstringRequired

Terraform version.

Example: 1.0.0
whostringOptional

The machine user who is performing the operation.

Default: ""Example: user1
Responses
200

OK response.

application/json

Terraform lock information resource.

accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: kg
createdinteger · int64Required

Time that the lock was taken.

Example: 4031183379788517000
idstring · min: 1Required

Unique ID for the lock. Generated by the terraform cli.

Example: 1ac4b858-bf0b-8539-9d80-8c521f6423cf
infostringOptional

Extra information to store with the lock.

Default: ""Example: production workspace lock
locked_by_display_namestringOptional

Display name of who locked the workspace

Example: Qui inventore.
locked_by_principal_idstringOptional

Principal ID who created the manual lock

Example: Nihil quasi enim maxime nobis itaque.
locked_by_principal_typestringOptional

Type of principal: 'user' or 'service_account'

Example: Sapiente sed quibusdam.
manualbooleanOptional

Whether the lock is manual (user-initiated). true = manual lock, false = automatic lock (Terraform CLI)

Default: falseExample: true
operationstringRequired

Terraform operation.

Example: OperationTypePlan
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: 2
pathstringOptional

Path to the state file when applicable.

Default: ""Example: /api/orgs/org1/projects/proj1/workspaces/production/data/fcdf0196-f5b3-49ab-87e3-ff102dfaf58c
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: r71
reasonstringOptional

Reason for manual lock (optional, max 1024 chars)

Example: Ipsum et nam ducimus officia autem quidem.
versionstringRequired

Terraform version.

Example: 1.0.0
whostringOptional

The machine user who is performing the operation.

Default: ""Example: user1
workspacestringRequired

Workspace identifier

Example: workspace123
post/api/orgs/{org}/projects/{project}/workspaces/{workspace}/terraform-backend/lock
POST /api/orgs/{org}/projects/{project}/workspaces/{workspace}/terraform-backend/lock?accountIdentifier=g1 HTTP/1.1
Host: localhost:80
Content-Type: application/json
Accept: */*
Content-Length: 278

{
  "created": "Autem esse et aut.",
  "id": "1ac4b858-bf0b-8539-9d80-8c521f6423cf",
  "info": "production workspace lock",
  "operation": "OperationTypePlan",
  "path": "/api/orgs/org1/projects/proj1/workspaces/production/data/fcdf0196-f5b3-49ab-87e3-ff102dfaf58c",
  "version": "1.0.0",
  "who": "user1"
}
{
  "account": "x",
  "created": 8720361955015101000,
  "id": "1ac4b858-bf0b-8539-9d80-8c521f6423cf",
  "info": "production workspace lock",
  "locked_by_display_name": "Cupiditate ea labore est.",
  "locked_by_principal_id": "Voluptate sapiente aperiam aut.",
  "locked_by_principal_type": "Nesciunt non repudiandae dolores occaecati repellat eum.",
  "manual": true,
  "operation": "OperationTypePlan",
  "org": "v",
  "path": "/api/orgs/org1/projects/proj1/workspaces/production/data/fcdf0196-f5b3-49ab-87e3-ff102dfaf58c",
  "project": "1vm",
  "reason": "Vel adipisci cum omnis rem fugit.",
  "version": "1.0.0",
  "who": "user1",
  "workspace": "workspace123"
}

Unlock workspace

delete
Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: m
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: np
workspacestringRequired

Workspace identifier

Example: workspace123
Query parameters
accountIdentifierstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: n6d
Body
createdstringRequired

Time that the lock was taken.

Example: Itaque perspiciatis eum enim dolores quia voluptatum.
idstring · min: 1Required

Unique ID for the lock. Generated by the terraform cli.

Example: 1ac4b858-bf0b-8539-9d80-8c521f6423cf
infostringOptional

Extra information to store with the lock.

Default: ""Example: production workspace lock
operationstringRequired

Terraform operation.

Example: OperationTypePlan
pathstringOptional

Path to the state file when applicable.

Default: ""Example: /api/orgs/org1/projects/proj1/workspaces/production/data/fcdf0196-f5b3-49ab-87e3-ff102dfaf58c
versionstringRequired

Terraform version.

Example: 1.0.0
whostringOptional

The machine user who is performing the operation.

Default: ""Example: user1
Responses
200

OK response.

No content

delete/api/orgs/{org}/projects/{project}/workspaces/{workspace}/terraform-backend/lock
DELETE /api/orgs/{org}/projects/{project}/workspaces/{workspace}/terraform-backend/lock?accountIdentifier=n6d HTTP/1.1
Host: localhost:80
Content-Type: application/json
Accept: */*
Content-Length: 287

{
  "created": "Neque magni alias ea omnis.",
  "id": "1ac4b858-bf0b-8539-9d80-8c521f6423cf",
  "info": "production workspace lock",
  "operation": "OperationTypePlan",
  "path": "/api/orgs/org1/projects/proj1/workspaces/production/data/fcdf0196-f5b3-49ab-87e3-ff102dfaf58c",
  "version": "1.0.0",
  "who": "user1"
}

No content

Last updated

Was this helpful?