get-async-operation
dci get-async-operation <operationId>
Returns the current status of an async report operation. Non-terminal operations (pending, running) include a Retry-After header suggesting when to poll again. This endpoint does not return result data — once status is "succeeded", fetch the result from the operation's results endpoint. When status is "failed", the error field contains an RFC 9457-shaped error. Returns 404 if the operationId does not exist, belongs to a different tenant, or has expired.
operationId— The unique ID of the async operation to poll.
Examples
# Check where a background report run stands.
dci get-async-operation <operation-id>
`status` is one of pending, running, succeeded, failed, or canceled, with `createTime` and `expireBy`; a failed operation carries an `error` object. The rows are not here: fetch them with `dci get-async-operation-results`.
# Poll from a script until the operation leaves pending or running.
dci get-async-operation <operation-id> --output json | jq -r .status
# Just the status and error, as JSON.
dci get-async-operation <operation-id> --fields status,error --output json