Download OpenAPI specification:
APIs to manage your system
All APIs support the standard Trino role header of X-Trino-Role.
Set a role for the API request by setting the header to system=ROLE{role-name}.
The combined size of an uploaded set of text files, binary files, or secrets cannot exceed 10MB and each individual file or secret cannot exceed 1MB.
Resume an instance
| instanceId required | string
|
{- "fieldViolations": [
- {
- "field": "string",
- "description": "string"
}
]
}Get all the logs of an instance as a single Zip file
| instanceId required | string
|
{- "fieldViolations": [
- {
- "field": "string",
- "description": "string"
}
]
}List instances available to the current user
| showAll | boolean If true, show terminated instances as well as active instances |
[- {
- "instanceId": "string",
- "name": "string",
- "type": "string",
- "createdBy": "string",
- "details": {
- "property1": "string",
- "property2": "string"
}
}
]Shutdown an instance
| instanceId required | string
|
{- "fieldViolations": [
- {
- "field": "string",
- "description": "string"
}
]
}Start a new Spark Connect driver
| doNotSaveConfiguration | boolean Use this to disable saving the configuration for this instance. Normally, the configuration used to start instances is saved so that it can be examined and/or duplicated later. If for some reason you do not want this (due to sensitive information, for example), then add this query parameter. |
| applicationName | string The application name. If not provided a name will be generated. |
object Any Spark configuration/properties to set arguments | |
| jars | Array of strings Any jars to pass in the |
| pythonFiles | Array of strings Any python files to pass in the |
| files | Array of strings Any files to pass in the |
| archives | Array of strings Any archives to pass in the |
object Any environment variables to set | |
| resourcePool | string Optional - the resource pool to use (you must have permission to use it) |
| secretUploads | Array of strings Optional - secret uploads Secrets will be set as environment variables in the Spark driver and executors. |
Array of objects Optional - file uploads (read only) | |
Array of objects Optional - inline file uploads. See Uploads for more details and limits. (read only) | |
| options | Array of strings Items Value: "EncryptCommunication" Details:
|
{- "applicationName": "string",
- "sparkProperties": {
- "property1": "string",
- "property2": "string"
}, - "jars": [
- "string"
], - "pythonFiles": [
- "string"
], - "files": [
- "string"
], - "archives": [
- "string"
], - "environmentVariables": {
- "property1": "string",
- "property2": "string"
}, - "resourcePool": "string",
- "secretUploads": [
- "string"
], - "fileUploads": [
- {
- "uploadId": "string",
- "mountPath": "string"
}
], - "inlineFileUploads": [
- {
- "comment": "string",
- "fileName": "string",
- "uploadType": "Text",
- "data": "string",
- "mountPath": "string"
}
], - "options": [
- "EncryptCommunication"
]
}{- "instanceId": "string"
}Create pre-signed URLs for the given bucket, key and credentials
| accessKey required | string The proxy AccessKey provided by your administrator |
| secretKey required | string The proxy SecretKey provided by your administrator |
| region required | string The S3 region of the bucket |
| bucket required | string The bucket for creating the pre-signed URLs |
| key required | string The key for creating the pre-signed URLs |
{- "accessKey": "string",
- "secretKey": "string",
- "region": "string",
- "bucket": "string",
- "key": "string"
}{- "presignedUrls": {
- "property1": "string",
- "property2": "string"
}
}Submit and run a batch job
| doNotSaveConfiguration | boolean Use this to disable saving the configuration for this instance. Normally, the configuration used to start instances is saved so that it can be examined and/or duplicated later. If for some reason you do not want this (due to sensitive information, for example), then add this query parameter. |
| applicationResource required | string The application resource to run - must be on an accessible object store |
| mainClass | string The main class of the batch job |
| cronTimeZone | string Optional CRON timezone. If provided, specify a time zone for the CRON job. Default is UTC. See List of Time Zones. |
| cronSchedule | string Optional CRON schedule. If provided, runs the job on the given schedule. See Wikipedia's CRON article for details on CRON schedules. |
| ttlSecondsAfterFinished | integer <int32> Optional.
|
| applicationArguments | Array of strings Any application arguments |
| applicationName | string The application name. If not provided a name will be generated. |
object Any Spark configuration/properties to set arguments | |
| jars | Array of strings Any jars to pass in the |
| pythonFiles | Array of strings Any python files to pass in the |
| files | Array of strings Any files to pass in the |
| archives | Array of strings Any archives to pass in the |
object Any environment variables to set | |
| resourcePool | string Optional - the resource pool to use (you must have permission to use it) |
| secretUploads | Array of strings Optional - secret uploads Secrets will be set as environment variables in the Spark driver and executors. |
Array of objects Optional - file uploads (read only) | |
Array of objects Optional - inline file uploads. See Uploads for more details and limits. (read only) | |
| options | Array of strings Items Value: "EncryptCommunication" Details:
|
{- "applicationResource": "string",
- "mainClass": "string",
- "cronTimeZone": "string",
- "cronSchedule": "string",
- "ttlSecondsAfterFinished": 0,
- "applicationArguments": [
- "string"
], - "applicationName": "string",
- "sparkProperties": {
- "property1": "string",
- "property2": "string"
}, - "jars": [
- "string"
], - "pythonFiles": [
- "string"
], - "files": [
- "string"
], - "archives": [
- "string"
], - "environmentVariables": {
- "property1": "string",
- "property2": "string"
}, - "resourcePool": "string",
- "secretUploads": [
- "string"
], - "fileUploads": [
- {
- "uploadId": "string",
- "mountPath": "string"
}
], - "inlineFileUploads": [
- {
- "comment": "string",
- "fileName": "string",
- "uploadType": "Text",
- "data": "string",
- "mountPath": "string"
}
], - "options": [
- "EncryptCommunication"
]
}{- "instanceId": "string"
}Restart an instance
| instanceId required | string
|
{- "fieldViolations": [
- {
- "field": "string",
- "description": "string"
}
]
}Create/start a duplicate instance of the any instance
| instanceId required | string
|
| doNotSaveConfiguration | boolean Use this to disable saving the configuration for this instance. Normally, the configuration used to start instances is saved so that it can be examined and/or duplicated later. If for some reason you do not want this (due to sensitive information, for example), then add this query parameter. |
| newName | string The application name. If not provided a name will be generated. |
| resourcePool | string Optional - the resource pool to use (you must have permission to use it) |
{- "newName": "string",
- "resourcePool": "string"
}{- "instanceId": "string"
}Get the status of an instance
| instanceId required | string
|
| showAll | boolean If true, show terminated instances as well as active instances |
{- "status": {
- "property1": "string",
- "property2": "string"
}
}Get the log output of a batch job, a connect driver or a notebook server
| instanceId required | string
|
{- "fieldViolations": [
- {
- "field": "string",
- "description": "string"
}
]
}Start a new notebook server
| doNotSaveConfiguration | boolean Use this to disable saving the configuration for this instance. Normally, the configuration used to start instances is saved so that it can be examined and/or duplicated later. If for some reason you do not want this (due to sensitive information, for example), then add this query parameter. |
| notebookName | string The notebook name. If not provided a name will be generated. |
| resourcePool | string Optional - the resource pool to use (you must have permission to use it) |
| description | string Optional - the description of the notebook instance |
{- "notebookName": "string",
- "resourcePool": "string",
- "description": "string"
}{- "instanceId": "string"
}List all known instances
| showAll | boolean If true, show terminated instances as well as active instances |
[- {
- "instanceId": "string",
- "name": "string",
- "type": "string",
- "createdBy": "string",
- "details": {
- "property1": "string",
- "property2": "string"
}
}
]Suspend an instance
| instanceId required | string
|
{- "fieldViolations": [
- {
- "field": "string",
- "description": "string"
}
]
}Get the log output of an instance.
logsId is the log index to return: Some cluster types have multiple nodes/workers. Pass 0 to get the main logs and then increase the index to get other logs.
| instanceId required | string
|
| logsId required | string Logs from an instance |
{- "fieldViolations": [
- {
- "field": "string",
- "description": "string"
}
]
}Shutdown and remove all notebook servers
| preserveUserData | boolean Preserve user data when deleting the notebook servers |
{- "reason": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}Shutdown and remove an instance
| instanceId required | string
|
| preserveUserData | boolean Preserve user data when deleting the notebook server |
| force | boolean Use with caution! Immediately deletes instance without waiting for normal shutdown. This will likely result in loss of final logs, events, etc. |
{- "fieldViolations": [
- {
- "field": "string",
- "description": "string"
}
]
}Return the current resource pool set including the total available memory and cores
{- "totalMemory": "string",
- "totalCores": "string",
- "totalGpus": "string",
- "resourcePools": [
- {
- "resourcePoolId": "string",
- "priority": 0,
- "minMemory": "string",
- "minCores": "string",
- "maxMemory": "string",
- "maxCores": "string",
- "maxGpus": "string",
- "applicationMaxGpus": "string"
}
]
}Update the set of available resource pools (replace the entire set)
required | Array of objects (ResourcePools) The set of resource pools |
{- "resourcePools": [
- {
- "resourcePoolId": "string",
- "priority": 0,
- "minMemory": "string",
- "minCores": "string",
- "maxMemory": "string",
- "maxCores": "string",
- "maxGpus": "string",
- "applicationMaxGpus": "string"
}
]
}{- "fieldViolations": [
- {
- "field": "string",
- "description": "string"
}
]
}Create new resource pool
| resourcePoolId required | string The name of this resource pool (must be unique) |
| priority | integer <int32> The priority of this pool. Pools with larger/higher priority numbers have priority over pools with smaller/lower priority numbers. If not specified, the priority is "0". |
| minMemory required | string Minimum memory (as a Spark quantity string) |
| minCores required | string Minimum virtual cores (as a CPU unit) |
| maxMemory required | string Maximum memory (as a Spark quantity string) |
| maxCores required | string Maximum virtual cores (as a CPU unit) |
| maxGpus | string Maximum gpus (as a Spark quantity string) |
| applicationMaxGpus | string Maximum gpus per application (as a Spark quantity string) |
{- "resourcePoolId": "string",
- "priority": 0,
- "minMemory": "string",
- "minCores": "string",
- "maxMemory": "string",
- "maxCores": "string",
- "maxGpus": "string",
- "applicationMaxGpus": "string"
}{- "fieldViolations": [
- {
- "field": "string",
- "description": "string"
}
]
}Edit resource pool (update all parameters for a single resource pool)
| resourcePoolId required | string A resource pool that describes a minimum and maximum resource set of memory and cores |
| resourcePoolId required | string The name of this resource pool (must be unique) |
| priority | integer <int32> The priority of this pool. Pools with larger/higher priority numbers have priority over pools with smaller/lower priority numbers. If not specified, the priority is "0". |
| minMemory required | string Minimum memory (as a Spark quantity string) |
| minCores required | string Minimum virtual cores (as a CPU unit) |
| maxMemory required | string Maximum memory (as a Spark quantity string) |
| maxCores required | string Maximum virtual cores (as a CPU unit) |
| maxGpus | string Maximum gpus (as a Spark quantity string) |
| applicationMaxGpus | string Maximum gpus per application (as a Spark quantity string) |
{- "resourcePoolId": "string",
- "priority": 0,
- "minMemory": "string",
- "minCores": "string",
- "maxMemory": "string",
- "maxCores": "string",
- "maxGpus": "string",
- "applicationMaxGpus": "string"
}{- "fieldViolations": [
- {
- "field": "string",
- "description": "string"
}
]
}Delete resource pool
| resourcePoolId required | string A resource pool that describes a minimum and maximum resource set of memory and cores |
{- "fieldViolations": [
- {
- "field": "string",
- "description": "string"
}
]
}Get a file upload
| uploadId required | string A text or binary file. See Uploads for more details and limits. |
{- "comment": "string",
- "textData": {
- "property1": "string",
- "property2": "string"
}, - "binaryData": {
- "property1": "string",
- "property2": "string"
}
}Update a file upload
| uploadId required | string A text or binary file. See Uploads for more details and limits. |
| comment required | string Comment or description. Used only for your own reference purposes. |
required | object Map of name-to-text files/data |
required | object Map of name-to-binary files/data. Data must be Base64 encoded. |
{- "comment": "string",
- "textData": {
- "property1": "string",
- "property2": "string"
}, - "binaryData": {
- "property1": "string",
- "property2": "string"
}
}{- "fieldViolations": [
- {
- "field": "string",
- "description": "string"
}
]
}Delete a file upload
| uploadId required | string A text or binary file. See Uploads for more details and limits. |
{- "fieldViolations": [
- {
- "field": "string",
- "description": "string"
}
]
}Create a new file upload
| comment required | string Comment or description. Used only for your own reference purposes. |
required | object Map of name-to-text files/data |
required | object Map of name-to-binary files/data. Data must be Base64 encoded. |
{- "comment": "string",
- "textData": {
- "property1": "string",
- "property2": "string"
}, - "binaryData": {
- "property1": "string",
- "property2": "string"
}
}{- "uploadId": "string",
- "comment": "string",
- "textNames": [
- "string"
], - "binaryNames": [
- "string"
]
}Create a new secret upload
| comment required | string Comment or description. Used only for your own reference purposes. |
required | object Map of name-to-binary secrets. Data must be Base64 encoded. When the uploaded secret is used in an instance this map of secrets/values are set as environment variables. Thus, the secret name must be valid environment variable identifier. See Uploads for more details and limits. |
{- "comment": "string",
- "secrets": {
- "property1": "string",
- "property2": "string"
}
}{- "uploadId": "string",
- "comment": "string",
- "secretNames": [
- "string"
]
}Get a secret upload
| uploadId required | string A text or binary file. See Uploads for more details and limits. |
{- "comment": "string",
- "secretNames": [
- "string"
]
}Update a secret upload
| uploadId required | string A text or binary file. See Uploads for more details and limits. |
| comment required | string Comment or description. Used only for your own reference purposes. |
required | object Map of name-to-binary secrets. Data must be Base64 encoded. When the uploaded secret is used in an instance this map of secrets/values are set as environment variables. Thus, the secret name must be valid environment variable identifier. See Uploads for more details and limits. |
{- "comment": "string",
- "secrets": {
- "property1": "string",
- "property2": "string"
}
}{- "fieldViolations": [
- {
- "field": "string",
- "description": "string"
}
]
}Delete a secret upload
| uploadId required | string A text or binary file. See Uploads for more details and limits. |
{- "fieldViolations": [
- {
- "field": "string",
- "description": "string"
}
]
}| totalMemory required | string Total available memory (as a Spark quantity string) |
| totalCores required | string Total available virtual cores |
| totalGpus required | string Total available gpus (as quantity string) |
required | Array of objects The set of resource pools |
{- "totalMemory": "string",
- "totalCores": "string",
- "totalGpus": "string",
- "resourcePools": [
- {
- "resourcePoolId": "string",
- "priority": 0,
- "minMemory": "string",
- "minCores": "string",
- "maxMemory": "string",
- "maxCores": "string",
- "maxGpus": "string",
- "applicationMaxGpus": "string"
}
]
}| uploadId required | string The ID of this upload |
| comment required | string Comment or description. Used only for your own reference purposes. |
| textNames required | Array of strings Names of text data in the upload |
| binaryNames required | Array of strings Names of binary data in the upload |
{- "uploadId": "string",
- "comment": "string",
- "textNames": [
- "string"
], - "binaryNames": [
- "string"
]
}| uploadId required | string The ID of this upload |
| comment required | string Comment or description. Used only for your own reference purposes. |
| secretNames required | Array of strings Secret names |
{- "uploadId": "string",
- "comment": "string",
- "secretNames": [
- "string"
]
}| instanceId required | string The instance Id |
| name required | string The instance name |
| type required | string The instance type |
| createdBy required | string User that created the instance |
required | object Any additional details about the instance |
{- "instanceId": "string",
- "name": "string",
- "type": "string",
- "createdBy": "string",
- "details": {
- "property1": "string",
- "property2": "string"
}
}| applicationResource required | string The application resource to run - must be on an accessible object store |
| mainClass | string The main class of the batch job |
| cronTimeZone | string Optional CRON timezone. If provided, specify a time zone for the CRON job. Default is UTC. See List of Time Zones. |
| cronSchedule | string Optional CRON schedule. If provided, runs the job on the given schedule. See Wikipedia's CRON article for details on CRON schedules. |
| ttlSecondsAfterFinished | integer <int32> Optional.
|
| applicationArguments | Array of strings Any application arguments |
| applicationName | string The application name. If not provided a name will be generated. |
object Any Spark configuration/properties to set arguments | |
| jars | Array of strings Any jars to pass in the |
| pythonFiles | Array of strings Any python files to pass in the |
| files | Array of strings Any files to pass in the |
| archives | Array of strings Any archives to pass in the |
object Any environment variables to set | |
| resourcePool | string Optional - the resource pool to use (you must have permission to use it) |
| secretUploads | Array of strings Optional - secret uploads Secrets will be set as environment variables in the Spark driver and executors. |
Array of objects Optional - file uploads (read only) | |
Array of objects Optional - inline file uploads. See Uploads for more details and limits. (read only) | |
| options | Array of strings Items Value: "EncryptCommunication" Details:
|
{- "applicationResource": "string",
- "mainClass": "string",
- "cronTimeZone": "string",
- "cronSchedule": "string",
- "ttlSecondsAfterFinished": 0,
- "applicationArguments": [
- "string"
], - "applicationName": "string",
- "sparkProperties": {
- "property1": "string",
- "property2": "string"
}, - "jars": [
- "string"
], - "pythonFiles": [
- "string"
], - "files": [
- "string"
], - "archives": [
- "string"
], - "environmentVariables": {
- "property1": "string",
- "property2": "string"
}, - "resourcePool": "string",
- "secretUploads": [
- "string"
], - "fileUploads": [
- {
- "uploadId": "string",
- "mountPath": "string"
}
], - "inlineFileUploads": [
- {
- "comment": "string",
- "fileName": "string",
- "uploadType": "Text",
- "data": "string",
- "mountPath": "string"
}
], - "options": [
- "EncryptCommunication"
]
}| comment required | string Comment or description. Used only for your own reference purposes. |
required | object Map of name-to-text files/data |
required | object Map of name-to-binary files/data. Data must be Base64 encoded. |
{- "comment": "string",
- "textData": {
- "property1": "string",
- "property2": "string"
}, - "binaryData": {
- "property1": "string",
- "property2": "string"
}
}required | Array of objects (ResourcePools) The set of resource pools |
{- "resourcePools": [
- {
- "resourcePoolId": "string",
- "priority": 0,
- "minMemory": "string",
- "minCores": "string",
- "maxMemory": "string",
- "maxCores": "string",
- "maxGpus": "string",
- "applicationMaxGpus": "string"
}
]
}| comment required | string Comment or description. Used only for your own reference purposes. |
required | object Map of name-to-binary secrets. Data must be Base64 encoded. When the uploaded secret is used in an instance this map of secrets/values are set as environment variables. Thus, the secret name must be valid environment variable identifier. See Uploads for more details and limits. |
{- "comment": "string",
- "secrets": {
- "property1": "string",
- "property2": "string"
}
}| comment required | string Comment or description. Used only for your own reference purposes. |
| secretNames required | Array of strings Secret names |
{- "comment": "string",
- "secretNames": [
- "string"
]
}| notebookName | string The notebook name. If not provided a name will be generated. |
| resourcePool | string Optional - the resource pool to use (you must have permission to use it) |
| description | string Optional - the description of the notebook instance |
{- "notebookName": "string",
- "resourcePool": "string",
- "description": "string"
}| applicationName | string The application name. If not provided a name will be generated. |
object Any Spark configuration/properties to set arguments | |
| jars | Array of strings Any jars to pass in the |
| pythonFiles | Array of strings Any python files to pass in the |
| files | Array of strings Any files to pass in the |
| archives | Array of strings Any archives to pass in the |
object Any environment variables to set | |
| resourcePool | string Optional - the resource pool to use (you must have permission to use it) |
| secretUploads | Array of strings Optional - secret uploads Secrets will be set as environment variables in the Spark driver and executors. |
Array of objects Optional - file uploads (read only) | |
Array of objects Optional - inline file uploads. See Uploads for more details and limits. (read only) | |
| options | Array of strings Items Value: "EncryptCommunication" Details:
|
{- "applicationName": "string",
- "sparkProperties": {
- "property1": "string",
- "property2": "string"
}, - "jars": [
- "string"
], - "pythonFiles": [
- "string"
], - "files": [
- "string"
], - "archives": [
- "string"
], - "environmentVariables": {
- "property1": "string",
- "property2": "string"
}, - "resourcePool": "string",
- "secretUploads": [
- "string"
], - "fileUploads": [
- {
- "uploadId": "string",
- "mountPath": "string"
}
], - "inlineFileUploads": [
- {
- "comment": "string",
- "fileName": "string",
- "uploadType": "Text",
- "data": "string",
- "mountPath": "string"
}
], - "options": [
- "EncryptCommunication"
]
}| time required | string Time of the event |
| type required | string Event type |
| reason required | string Event reason |
| name required | string Event name |
| action required | string Event action |
{- "time": "string",
- "type": "string",
- "reason": "string",
- "name": "string",
- "action": "string"
}| resourcePoolId required | string The name of this resource pool (must be unique) |
| priority | integer <int32> The priority of this pool. Pools with larger/higher priority numbers have priority over pools with smaller/lower priority numbers. If not specified, the priority is "0". |
| minMemory required | string Minimum memory (as a Spark quantity string) |
| minCores required | string Minimum virtual cores (as a CPU unit) |
| maxMemory required | string Maximum memory (as a Spark quantity string) |
| maxCores required | string Maximum virtual cores (as a CPU unit) |
| maxGpus | string Maximum gpus (as a Spark quantity string) |
| applicationMaxGpus | string Maximum gpus per application (as a Spark quantity string) |
{- "resourcePoolId": "string",
- "priority": 0,
- "minMemory": "string",
- "minCores": "string",
- "maxMemory": "string",
- "maxCores": "string",
- "maxGpus": "string",
- "applicationMaxGpus": "string"
}| accessKey required | string The proxy AccessKey provided by your administrator |
| secretKey required | string The proxy SecretKey provided by your administrator |
| region required | string The S3 region of the bucket |
| bucket required | string The bucket for creating the pre-signed URLs |
| key required | string The key for creating the pre-signed URLs |
{- "accessKey": "string",
- "secretKey": "string",
- "region": "string",
- "bucket": "string",
- "key": "string"
}| newName | string The application name. If not provided a name will be generated. |
| resourcePool | string Optional - the resource pool to use (you must have permission to use it) |
{- "newName": "string",
- "resourcePool": "string"
}required | object The pre-signed URLs. The key is an HTTP verb (GET, PUT, POST, DELETE). The value is the pre-signed URL |
{- "presignedUrls": {
- "property1": "string",
- "property2": "string"
}
}| resourceName required | string Name of the resource (read only) |
| description required | string Violation description (read only) |
{- "resourceName": "string",
- "description": "string"
}required | Array of objects (FieldViolations) Field violations (read only) |
{- "fieldViolations": [
- {
- "field": "string",
- "description": "string"
}
]
}required | Array of objects (FieldViolations) Field violations (read only) |
{- "fieldViolations": [
- {
- "field": "string",
- "description": "string"
}
]
}| reason required | string Error reason/detail (read only) |
required | object Any additional details (read only) |
{- "reason": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}| field required | string Field name |
| description required | string Description of the violation |
{- "field": "string",
- "description": "string"
}