Push Terraform state
Stores a new state version; the body is the full .tfstate document. Maps to the Terraform HTTP backend POST. Authenticate with a PAT/SAT; requires the state:write scope.
Authorization
bearerAuth Personal Access Token (PAT) or Service Access Token (SAT). Pass the token in the Authorization header: Bearer admp_...
In: header
Path Parameters
The infrastructure component (UUID).
uuidThe environment the state is scoped to (UUID).
uuidQuery Parameters
The held lock ID, when the state is locked.
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://api.admiral.io/api/v1/state/497f6eca-6276-4993-bfeb-53cbbbba6f08/env/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{ "ID": "string", "Operation": "string", "Info": "string", "Who": "string", "Version": "string", "Created": "2019-08-24T14:15:22Z", "Path": "string"}Fetch current Terraform state GET
Returns the current `.tfstate` document for the component+environment, or 204 when no state exists yet. Maps to the Terraform HTTP backend GET. Authenticate with a PAT/SAT (HTTP Basic password or Bearer token); requires the `state:read` scope.
Create a personal access token POST
Scope: `token:write`