Ingest a Terraform state file or backend

POST/api/v1/integrations/terraform/state

Parameters

This endpoint does not accept parameters.

Responses

202State ingestion started

Request

curl -X POST "https://api.knowledgetree.dev/api/v1/integrations/terraform/state" \
  -H "Authorization: Bearer $KT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "backend": "s3", "bucket": "tf-state-acme", "key": "prod/network.tfstate" }'

Response

202State ingestion started
Example response not yet documented.