GET /プロジェクト/{projectId}/query/{queryId}
curl \
--request GET 'http://127.0.0.1:8278/api/v1/project/{projectId}/queries/{queryId}'
応答の例(200)
{
"query": {
"id": "string",
"projectId": "string",
"input": {
"database": "string",
"schema": "string",
"name": "string",
"query": "string",
"createdAt": "2025-05-04T09:42:00Z",
"runScriptTemplate": "string",
"queryType": "STORED_PROCEDURE"
},
"output": {
"query": "string",
"status": "NOT_STARTED",
"lastModifiedAt": "2025-05-04T09:42:00Z",
"language": "JAVA",
"attemptedTypedEntities": true,
"usedTypedEntities": false,
"errorMessage": "string",
"modified": true,
"runScriptTemplate": "string",
"functionName": "string"
}
},
"convertedRunResult": {
"id": "string",
"projectId": "string",
"executionTimeMs": 42.0,
"result": {
"data": "string",
"pageNumber": 42,
"pageSize": 42,
"total": 42,
"hasMore": true
},
"error": "string",
"logs": {
"stdout": "string",
"stderr": "string"
}
},
"sourceRunResult": {
"id": "string",
"projectId": "string",
"executionTimeMs": 42.0,
"result": {
"data": "string",
"pageNumber": 42,
"pageSize": 42,
"total": 42,
"hasMore": true
},
"error": "string",
"logs": {
"stdout": "string",
"stderr": "string"
},
"fieldMetadataMap": {
"additionalProperty1": {
"columnType": "string",
"columnIndex": 42
},
"additionalProperty2": {
"columnType": "string",
"columnIndex": 42
}
}
}
}
応答の例(404)
{
"jobId": "string",
"message": "string",
"description": "string",
"timestamp": "2025-05-04T09:42:00Z"
}