Browse API reference
Get operation
/v1/operations/{operation_id}The operation.
Request
curl --fail-with-body --silent --show-error \
--request GET \
--url "https://api.tachora.ai/v1/operations/${TACHORA_OPERATION_ID}" \
--header "Authorization: Bearer ${TACHORA_API_KEY}"Set TACHORA_API_KEY and any resource IDs in your shell before running the command.
Path parameters
operation_idstringRequired
Responses
200The operation.
401Missing, invalid, expired or revoked credentials, or an API key whose creator no longer has access (
unauthenticated).403Authenticated but not allowed (
permission_denied), including users outside the sign-in allowlist.404The resource does not exist or the caller cannot see it (
not_found).
200 JSON response fields
attemptsintegerRequiredHow many times the worker has started this operation.
completed_atstring · date-timecreated_atstring · date-timeRequirederrorobjectPresent when
stateisfailed.error.codestringRequirederror.messagestringRequiredidstringRequired- Example
"op_01jd3v7k8m0000000000000000"
- Example
kindstringRequired- Values
endpoint.create, endpoint.delete, instance.create, instance.delete, instance.start, instance.stop
- Values
project_idstringRequiredresource_idstringRequiredThe endpoint or instance this operation acts on.
statestringRequiredpendingandrunningare transitional;succeeded,failedandcancelledare terminal. A create iscancelledwhen a delete supersedes it.- Values
pending, running, succeeded, failed, cancelled
- Values
stepsobject[]Requiredsteps[].attemptsintegerRequired- Minimum
0
- Minimum
steps[].finished_atstring · date-timesteps[].last_errorstringsteps[].namestringRequired- Example
"reserve_capacity"
- Example
steps[].started_atstring · date-timesteps[].statestringRequired- Values
pending, running, succeeded, failed, skipped
- Values
updated_atstring · date-timeRequired
401, 403, 404 JSON response fields
errorobjectRequirederror.codestringRequiredStable, machine-readable error code.
- Values
invalid_argument, unauthenticated, permission_denied, not_found, conflict, billing_setup_required, idempotency_key_reused, internal, unavailable, rate_limited, insufficient_capacity, quota_exceeded, subnet_full, resource_in_use, not_implemented
- Values
error.detailsobject[]Per-field problems for
invalid_argument.error.details[].fieldstringRequirederror.details[].messagestringRequirederror.messagestringRequiredHuman-readable explanation. Do not parse.
error.request_idstringEchoes the
X-Request-Idresponse header.