All Products
Search
Document Center

Simple Log Service:GetAsyncSql

Last Updated:Mar 27, 2026

Retrieves the status and results of an asynchronous SQL query.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

GET /asyncsql/{queryId} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

queryId

string

No

Request parameters

Parameter

Type

Required

Description

Example

project

string

No

offset

integer

No

line

integer

No

Response elements

Element

Type

Description

Example

AsyncSqlResponseData

Examples

Success response

JSON format

{
  "id": "690C4F2A16FBD65C40000484_14",
  "state": "FINISHED",
  "AsyncSqlMetaPB": {
    "result_rows": 12000,
    "processed_rows": 10000000,
    "elapsed_milli": 30000,
    "cpu_sec": 0.2,
    "cpu_cores": 10,
    "progress": "Complete",
    "keys": [
      "[\"name\", \"age\", \"gender\"]"
    ]
  },
  "rows": [
    [
      "[\"Jimmy\", \"20\", \"male\"]"
    ]
  ],
  "error_code": "InvalidQuery",
  "error_message": "line 37:14: Column 'xyz' cannot be resolved"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.