Retrieve state for a job
The server validates that the SAT's runner binding matches the runner assigned to this job. Returns PERMISSION_DENIED if they do not match. Returns NOT_FOUND if the job does not exist or has been cancelled.
Maps to Terraform HTTP backend GET on the state address.
Scope: state:read | Token types: sat
Authorization
bearerAuth Personal Access Token (PAT) or Service Access Token (SAT). Pass the token in the Authorization header: Bearer adm_pat_...
In: header
Path Parameters
The job to fetch state for (UUID). The server resolves the component and environment from the job's binding.
uuidResponse Body
application/json
curl -X GET "https://admiral.example.com/api/v1/runner/jobs/497f6eca-6276-4993-bfeb-53cbbbba6f08/state"{ "data": "string"}Report job result POST
This endpoint is runner-facing and restricted to service access tokens. Scope: `runner:exec` | Token types: `sat`
Lock state for a job POST
The server validates that the SAT's runner binding matches the runner assigned to this job. Returns PERMISSION_DENIED if they do not match. Returns FAILED_PRECONDITION if the state is already locked by a different operation. The lock_id is generated by Terraform and must be passed to UnlockState. Maps to Terraform HTTP backend POST on the lock address. Scope: `state:write` | Token types: `sat`