get-query-status
Written by
Updated at October 28, 2024
The method returns the query execution status. Use the method to track the query progress to wait until it's executed and get query results.
When using the HTTP API, authenticate and specify the required headers. You can also specify optional headers for setting up request execution. The HTTP API may return errors while running.
Request
GET
request to /queries/{query_id}/status?project={folder_id}
, where {folder_id}
is the folder ID and {query_id}
is the query ID.
Response
If successful, an HTTP response with code 200 and the query execution status (RUNNING
, COMPLETED
, or FAILED
) is returned.
{
"status": "RUNNING"
}
Example
Request:
curl \
--request 'GET' \
--header 'accept: application/json' \
'https://api.yandex-query.cloud.yandex.net/api/fq/v1/queries/cseugn35bc3r********/status?project=b1gaue5b382m********'
Response:
{
"status": "RUNNING"
}