Command Execution
Cancel a command GA
POST
Cancels a currently running command within an execution context.
The command ID is obtained from a prior successful call to execute.
API scopes: command-execution
Request body
- clusterIdstring
- commandIdstring
- contextIdstring
Run a command GA
POST
Runs a cluster command in the given execution context, using the provided language.
If successful, it returns an ID for tracking the status of the command's execution.
API scopes: command-execution
Request body
- clusterIdstring
Running cluster id
- contextIdstring
Running context id
- languagestring
LANGUAGE_UNSPECIFIEDpythonscalasqlr
- commandstring
Executable code
Response
- idstring
Get command info GA
GET
Gets the status of and, if available, the results from a currently executing command.
The command ID is obtained from a prior successful call to execute.
API scopes: command-execution
Parameters
- clusterIdstringRequiredquery
- contextIdstringRequiredquery
- commandIdstringRequiredquery
Response
- idstring
- statusstring
COMMAND_STATUS_UNSPECIFIEDCancelledCancellingErrorFinishedQueuedRunning
- resultsobject
Show child attributesHide child attributes
- causestring
The cause of the error
- dataobject
- fileNamestring
The image data in one of the following formats:
-
A Data URL with base64-encoded image data:
data:image/{type};base64,{base64-data}. Example:data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA... -
A FileStore file path for large images:
/plots/{filename}.png. Example:/plots/b6a7ad70-fb2c-4353-8aed-3f1e015174a4.png
-
- fileNamesarray of string
List of image data for multiple images. Each element follows the same format as file_name.
- isJsonSchemaboolean
true if a JSON schema is returned instead of a string representation of the Hive type.
- posint32
internal field used by SDK
- resultTypestring
RESULT_TYPE_UNSPECIFIEDerrorimageimagestabletext
- schemaarray of object
The table schema
- summarystring
The summary of the error
- truncatedboolean
true if partial results are returned.
Create an execution context GA
POST
Creates an execution context for running cluster commands.
If successful, this method returns the ID of the new execution context.
API scopes: command-execution
Request body
- clusterIdstring
Running cluster id
- languagestring
LANGUAGE_UNSPECIFIEDpythonscalasqlr
Response
- idstring
Delete an execution context GA
POST
Deletes an execution context.
API scopes: command-execution
Request body
- clusterIdstringRequired
- contextIdstringRequired
Get status GA
GET
Gets the status for an execution context.
API scopes: command-execution
Parameters
- clusterIdstringRequiredquery
- contextIdstringRequiredquery
Response
- idstring
- statusstring
CONTEXT_STATUS_UNSPECIFIEDRunningPendingError