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 a cron batch job instance
| instanceId required | string
|
{- "message": "string",
- "fields": [
- "string"
]
}Get all the logs of an instance as a single Zip file
| instanceId required | string
|
{- "message": "string",
- "fields": [
- "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",
- "ownerRole": "string",
- "details": {
- "property1": "string",
- "property2": "string"
}
}
]Shutdown a notebook server instance
| instanceId required | string
|
{- "message": "string",
- "fields": [
- "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. |
required | object (Common) |
{- "common": {
- "applicationName": "string",
- "sparkProperties": {
- "property1": "string",
- "property2": "string"
}, - "jars": [
- "string"
], - "pythonFiles": [
- "string"
], - "files": [
- "string"
], - "archives": [
- "string"
], - "environmentVariables": {
- "property1": "string",
- "property2": "string"
}, - "resourcePool": "string",
- "instanceImageId": "string",
- "secretUploadIds": [
- "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 |
required | object (Common) |
{- "applicationResource": "string",
- "mainClass": "string",
- "cronTimeZone": "string",
- "cronSchedule": "string",
- "ttlSecondsAfterFinished": 0,
- "applicationArguments": [
- "string"
], - "common": {
- "applicationName": "string",
- "sparkProperties": {
- "property1": "string",
- "property2": "string"
}, - "jars": [
- "string"
], - "pythonFiles": [
- "string"
], - "files": [
- "string"
], - "archives": [
- "string"
], - "environmentVariables": {
- "property1": "string",
- "property2": "string"
}, - "resourcePool": "string",
- "instanceImageId": "string",
- "secretUploadIds": [
- "string"
], - "secretUploads": [
- "string"
], - "fileUploads": [
- {
- "uploadId": "string",
- "mountPath": "string"
}
], - "inlineFileUploads": [
- {
- "comment": "string",
- "fileName": "string",
- "uploadType": "Text",
- "data": "string",
- "mountPath": "string"
}
], - "options": [
- "EncryptCommunication"
]
}
}{- "instanceId": "string"
}Restart a notebook server instance
| instanceId required | string
|
{- "message": "string",
- "fields": [
- "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
|
{- "message": "string",
- "fields": [
- "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) |
| instanceImageId | string Instance image id to use (you must have permission to use it) |
| description | string Optional - the description of the notebook instance |
{- "notebookName": "string",
- "resourcePool": "string",
- "instanceImageId": "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",
- "ownerRole": "string",
- "details": {
- "property1": "string",
- "property2": "string"
}
}
]Suspend a cron batch job instance
| instanceId required | string
|
{- "message": "string",
- "fields": [
- "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 |
{- "message": "string",
- "fields": [
- "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. |
{- "message": "string",
- "fields": [
- "string"
]
}Return the current resource pool set including the total available memory and cores
{- "totalMemory": "string",
- "totalCores": "string",
- "totalGpus": "string",
- "resourcePools": {
- "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 (ResourcePool) The set of resource pools |
{- "resourcePools": [
- {
- "resourcePoolId": "string",
- "priority": 0,
- "minMemory": "string",
- "minCores": "string",
- "maxMemory": "string",
- "maxCores": "string",
- "maxGpus": "string",
- "applicationMaxGpus": "string"
}
]
}{- "message": "string",
- "fields": [
- "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"
}{- "message": "string",
- "fields": [
- "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"
}{- "message": "string",
- "fields": [
- "string"
]
}Delete resource pool
| resourcePoolId required | string A resource pool that describes a minimum and maximum resource set of memory and cores |
{- "message": "string",
- "fields": [
- "string"
]
}Update single resource pool parameters
Only include fields you wish to update. Missing or unrecognized fields are ignored.
| resourcePoolId required | string A resource pool that describes a minimum and maximum resource set of memory and cores |
| resourcePoolId | 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 | string Minimum memory (as a Spark quantity string) |
| minCores | string Minimum virtual cores (as a CPU unit) |
| maxMemory | string Maximum memory (as a Spark quantity string) |
| maxCores | 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"
}{- "resourcePoolId": "string",
- "priority": 0,
- "minMemory": "string",
- "minCores": "string",
- "maxMemory": "string",
- "maxCores": "string",
- "maxGpus": "string",
- "applicationMaxGpus": "string"
}{- "sparkEventLogsCleanerEnabled": true,
- "sparkEventLogsCleanerInterval": "string",
- "sparkEventLogsCleanerMaxAge": "string",
- "sparkEventLogsCompactionEnabled": true,
- "sparkEventLogsCompactionMaxFilesToRetain": 0,
- "instanceLogsCleanerEnabled": true,
- "instanceLogsCleanerInterval": "string",
- "instanceLogsCleanerMaxAge": "string"
}Update log retention settings
| sparkEventLogsCleanerEnabled | boolean Enable Spark event logs cleaner |
| sparkEventLogsCleanerInterval | string Interval for Spark event logs cleaner |
| sparkEventLogsCleanerMaxAge | string Max age for Spark event logs to retain |
| sparkEventLogsCompactionEnabled | boolean Enable Spark event logs compaction |
| sparkEventLogsCompactionMaxFilesToRetain | string Max files to retain after Spark event logs compaction |
| instanceLogsCleanerEnabled | boolean Enable instance logs cleaner |
| instanceLogsCleanerInterval | string Interval for instance logs cleaner |
| instanceLogsCleanerMaxAge | string Max age for instance logs to retain |
{- "sparkEventLogsCleanerEnabled": true,
- "sparkEventLogsCleanerInterval": "string",
- "sparkEventLogsCleanerMaxAge": "string",
- "sparkEventLogsCompactionEnabled": true,
- "sparkEventLogsCompactionMaxFilesToRetain": "string",
- "instanceLogsCleanerEnabled": true,
- "instanceLogsCleanerInterval": "string",
- "instanceLogsCleanerMaxAge": "string"
}{- "sparkEventLogsCleanerEnabled": true,
- "sparkEventLogsCleanerInterval": "string",
- "sparkEventLogsCleanerMaxAge": "string",
- "sparkEventLogsCompactionEnabled": true,
- "sparkEventLogsCompactionMaxFilesToRetain": 0,
- "instanceLogsCleanerEnabled": true,
- "instanceLogsCleanerInterval": "string",
- "instanceLogsCleanerMaxAge": "string"
}Reset log retention settings to defaults
{- "sparkEventLogsCleanerEnabled": true,
- "sparkEventLogsCleanerInterval": "string",
- "sparkEventLogsCleanerMaxAge": "string",
- "sparkEventLogsCompactionEnabled": true,
- "sparkEventLogsCompactionMaxFilesToRetain": 0,
- "instanceLogsCleanerEnabled": true,
- "instanceLogsCleanerInterval": "string",
- "instanceLogsCleanerMaxAge": "string"
}Get global storage usage
| moreInstances | boolean Gets top 1000 instances usage |
| allResourcePools | boolean Gets all resource pools usage |
{- "totalUsedBytes": 0,
- "totalObjectsCount": 0,
- "logsUsedBytes": 0,
- "logObjectsCount": 0,
- "historyServerEventsUsedBytes": 0,
- "historyServerEventsObjectsCount": 0,
- "notebookWorkspacesUsedBytes": 0,
- "notebookWorkspacesObjectsCount": 0,
- "instanceUsages": [
- {
- "instanceId": "string",
- "usedBytes": 0,
- "objectsCount": 0
}
], - "resourcePoolUsages": [
- {
- "resourcePoolId": "string",
- "usedBytes": 0,
- "objectsCount": 0
}
], - "lastRefreshedAt": "2019-08-24T14:15:22Z"
}[- {
- "activatedAt": "string",
- "activatedBy": "string",
- "activatedVersion": "string",
- "deactivatedAt": "string",
- "deactivatedBy": "string",
- "deactivatedVersion": "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"
}
}{- "message": "string",
- "fields": [
- "string"
]
}Delete a file upload
| uploadId required | string A text or binary file. See Uploads for more details and limits. |
{- "message": "string",
- "fields": [
- "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"
}
}{- "message": "string",
- "fields": [
- "string"
]
}Delete a secret upload
| uploadId required | string A text or binary file. See Uploads for more details and limits. |
{- "message": "string",
- "fields": [
- "string"
]
}Get all instance image imports
| pageToken | string Pagination token |
| pageSize | integer <int32> Page size or 0 for default (current maximum is 100) |
{- "nextPageToken": "string",
- "result": [
- {
- "id": "string",
- "name": "string",
- "repository": "string",
- "tag": "string",
- "description": "string",
- "allowInsecure": true,
- "isPrivate": true,
- "status": "New",
- "statusDescription": "string",
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Submit and run a instance image import
| name required | string Image name |
| repository required | string Registry with repository name to import |
| tag required | string Image tag to import |
| description | string Optional image description |
| allowInsecure required | boolean Allow insecure registry connection |
| isPrivate required | boolean Registry require credentials for accessing |
object (Credentials) Credentials required for accessing registry |
{- "name": "string",
- "repository": "string",
- "tag": "string",
- "description": "string",
- "allowInsecure": true,
- "isPrivate": true,
- "credentials": {
- "username": "string",
- "password": "string"
}
}{- "instanceImageImportId": "string"
}Get image import details
| instanceImageImportId required | string An instance image import |
{- "id": "string",
- "name": "string",
- "repository": "string",
- "tag": "string",
- "description": "string",
- "allowInsecure": true,
- "isPrivate": true,
- "status": "New",
- "statusDescription": "string",
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Update instance image status
| instanceImageId required | string An instance image |
| status required | string Enum: "Init" "Pending" "Verified" "Rejected" "MarkedForDelete" "Deleted" Image status |
| statusDescription | string Status description |
{- "status": "Init",
- "statusDescription": "string"
}{- "message": "string",
- "fields": [
- "string"
]
}Get instance image details
| instanceImageId required | string An instance image |
{- "instanceImageInfo": {
- "id": "string",
- "name": "string",
- "tag": "string",
- "description": "string",
- "origin": {
- "repository": "string",
- "tag": "string",
- "isPrivate": true,
- "taskId": "string"
}, - "baseImageId": "string",
- "digest": "string",
- "type": {
- "kind": "Spark",
- "version": "string"
}, - "status": "Init",
- "statusDescription": "string",
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "layers": [
- {
- "mime": "string",
- "digest": "string",
- "size": 0,
- "annotations": "string"
}
], - "history": [
- {
- "created": "2019-08-24T14:15:22Z",
- "command": "string",
- "comment": "string",
- "emptyLayer": true
}
]
}Get available instance images for users
| pageToken | string Pagination token |
| pageSize | integer <int32> Page size or 0 for default (current maximum is 100) |
{- "nextPageToken": "string",
- "result": [
- {
- "id": "string",
- "name": "string",
- "tag": "string",
- "description": "string",
- "type": {
- "kind": "Spark",
- "version": "string"
}, - "status": "Init"
}
]
}Get all instance image
| pageToken | string Pagination token |
| pageSize | integer <int32> Page size or 0 for default (current maximum is 100) |
{- "nextPageToken": "string",
- "result": [
- {
- "id": "string",
- "name": "string",
- "tag": "string",
- "description": "string",
- "origin": {
- "repository": "string",
- "tag": "string",
- "isPrivate": true,
- "taskId": "string"
}, - "baseImageId": "string",
- "digest": "string",
- "type": {
- "kind": "Spark",
- "version": "string"
}, - "status": "Init",
- "statusDescription": "string",
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}| status required | string Enum: "Deactivated" "WaitingForJobsTermination" "ReadyForSafeUpgrade" System maintenance status |
{- "status": "Deactivated"
}| repository required | string Origin repository |
| tag required | string Origin tag |
| isPrivate required | boolean Origin required credentials |
| taskId | string Origin import task id |
{- "repository": "string",
- "tag": "string",
- "isPrivate": true,
- "taskId": "string"
}| nextPageToken | string The next page token to use or "" if there are no more pages. |
Array of objects (InstanceImageInfo) A page of results. |
{- "nextPageToken": "string",
- "result": [
- {
- "id": "string",
- "name": "string",
- "tag": "string",
- "description": "string",
- "origin": {
- "repository": "string",
- "tag": "string",
- "isPrivate": true,
- "taskId": "string"
}, - "baseImageId": "string",
- "digest": "string",
- "type": {
- "kind": "Spark",
- "version": "string"
}, - "status": "Init",
- "statusDescription": "string",
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}required | object (InstanceImageInfo) An instance image |
required | Array of objects (InstanceLayerInfo) Layers |
required | Array of objects (InstanceHistoryInfo) History |
{- "instanceImageInfo": {
- "id": "string",
- "name": "string",
- "tag": "string",
- "description": "string",
- "origin": {
- "repository": "string",
- "tag": "string",
- "isPrivate": true,
- "taskId": "string"
}, - "baseImageId": "string",
- "digest": "string",
- "type": {
- "kind": "Spark",
- "version": "string"
}, - "status": "Init",
- "statusDescription": "string",
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "layers": [
- {
- "mime": "string",
- "digest": "string",
- "size": 0,
- "annotations": "string"
}
], - "history": [
- {
- "created": "2019-08-24T14:15:22Z",
- "command": "string",
- "comment": "string",
- "emptyLayer": true
}
]
}| totalUsedBytes required | integer <int64> Total storage used (bytes) |
| totalObjectsCount required | integer <int64> Total number of objects stored |
| logsUsedBytes required | integer <int64> Storage used by logs (bytes) |
| logObjectsCount required | integer <int64> Number of log objects |
| historyServerEventsUsedBytes required | integer <int64> Storage used by history server events (bytes) |
| historyServerEventsObjectsCount required | integer <int64> Number of objects stored by history server events |
| notebookWorkspacesUsedBytes required | integer <int64> Storage used by notebook workspaces (bytes) |
| notebookWorkspacesObjectsCount required | integer <int64> Number of objects stored in notebook workspaces |
required | Array of objects (InstanceStorageUsage) Storage usage details per instance |
required | Array of objects (ResourcePoolStorageUsage) Storage usage details per resource pool |
| lastRefreshedAt required | string <date-time> Last refreshed at |
{- "totalUsedBytes": 0,
- "totalObjectsCount": 0,
- "logsUsedBytes": 0,
- "logObjectsCount": 0,
- "historyServerEventsUsedBytes": 0,
- "historyServerEventsObjectsCount": 0,
- "notebookWorkspacesUsedBytes": 0,
- "notebookWorkspacesObjectsCount": 0,
- "instanceUsages": [
- {
- "instanceId": "string",
- "usedBytes": 0,
- "objectsCount": 0
}
], - "resourcePoolUsages": [
- {
- "resourcePoolId": "string",
- "usedBytes": 0,
- "objectsCount": 0
}
], - "lastRefreshedAt": "2019-08-24T14:15:22Z"
}| kind required | string Enum: "Spark" "Notebook" An instance image type |
| version required | string An instance image version |
{- "kind": "Spark",
- "version": "string"
}required | Array of objects (ResourcePool) The set of resource pools |
{- "resourcePools": [
- {
- "resourcePoolId": "string",
- "priority": 0,
- "minMemory": "string",
- "minCores": "string",
- "maxMemory": "string",
- "maxCores": "string",
- "maxGpus": "string",
- "applicationMaxGpus": "string"
}
]
}| status required | string Enum: "Init" "Pending" "Verified" "Rejected" "MarkedForDelete" "Deleted" Image status |
| statusDescription | string Status description |
{- "status": "Init",
- "statusDescription": "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 |
required | object (Common) |
{- "applicationResource": "string",
- "mainClass": "string",
- "cronTimeZone": "string",
- "cronSchedule": "string",
- "ttlSecondsAfterFinished": 0,
- "applicationArguments": [
- "string"
], - "common": {
- "applicationName": "string",
- "sparkProperties": {
- "property1": "string",
- "property2": "string"
}, - "jars": [
- "string"
], - "pythonFiles": [
- "string"
], - "files": [
- "string"
], - "archives": [
- "string"
], - "environmentVariables": {
- "property1": "string",
- "property2": "string"
}, - "resourcePool": "string",
- "instanceImageId": "string",
- "secretUploadIds": [
- "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"
}| nextPageToken | string The next page token to use or "" if there are no more pages. |
Array of objects (InstanceImageImportInfo) A page of results. |
{- "nextPageToken": "string",
- "result": [
- {
- "id": "string",
- "name": "string",
- "repository": "string",
- "tag": "string",
- "description": "string",
- "allowInsecure": true,
- "isPrivate": true,
- "status": "New",
- "statusDescription": "string",
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}| 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 | object (ResourcePoolSet) |
{- "totalMemory": "string",
- "totalCores": "string",
- "totalGpus": "string",
- "resourcePools": {
- "resourcePools": [
- {
- "resourcePoolId": "string",
- "priority": 0,
- "minMemory": "string",
- "minCores": "string",
- "maxMemory": "string",
- "maxCores": "string",
- "maxGpus": "string",
- "applicationMaxGpus": "string"
}
]
}
}| mime required | string Mime type |
| digest required | string Digest |
| size required | integer <int64> Size |
| annotations | string Annotations |
{- "mime": "string",
- "digest": "string",
- "size": 0,
- "annotations": "string"
}| resourcePoolId required | string The name of the resource pool |
| usedBytes required | integer <int64> Storage bytes used by this resource pool |
| objectsCount required | integer <int64> Number of objects stored by this resource pool |
{- "resourcePoolId": "string",
- "usedBytes": 0,
- "objectsCount": 0
}| created required | string <date-time> Created |
| command required | string Command |
| comment required | string Comment |
| emptyLayer required | boolean Is layer empty |
{- "created": "2019-08-24T14:15:22Z",
- "command": "string",
- "comment": "string",
- "emptyLayer": true
}| comment required | string Comment or description. Used only for your own reference purposes. |
| secretNames required | Array of strings Secret names |
{- "comment": "string",
- "secretNames": [
- "string"
]
}| resourcePoolId | 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 | string Minimum memory (as a Spark quantity string) |
| minCores | string Minimum virtual cores (as a CPU unit) |
| maxMemory | string Maximum memory (as a Spark quantity string) |
| maxCores | 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"
}| 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) |
| instanceImageId | string Instance image id to use (you must have permission to use it) |
| description | string Optional - the description of the notebook instance |
{- "notebookName": "string",
- "resourcePool": "string",
- "instanceImageId": "string",
- "description": "string"
}| running required | boolean Instance log cleaning is being run |
| lastCleanedAt | string <date-time> Last cleaned at |
{- "running": true,
- "lastCleanedAt": "2019-08-24T14:15:22Z"
}| instanceImageImportId required | string The image import Id |
{- "instanceImageImportId": "string"
}| instanceId required | string The instance id |
| usedBytes required | integer <int64> Storage bytes used by this instance |
| objectsCount required | integer <int64> Number of objects stored by this instance |
{- "instanceId": "string",
- "usedBytes": 0,
- "objectsCount": 0
}| sparkEventLogsCleanerEnabled required | boolean Enable Spark event logs cleaner |
| sparkEventLogsCleanerInterval required | string Interval for Spark event logs cleaner |
| sparkEventLogsCleanerMaxAge required | string Max age for Spark event logs to retain |
| sparkEventLogsCompactionEnabled required | boolean Enable Spark event logs compaction |
| sparkEventLogsCompactionMaxFilesToRetain required | integer <int32> Max files to retain after Spark event logs compaction |
| instanceLogsCleanerEnabled required | boolean Enable instance logs cleaner |
| instanceLogsCleanerInterval required | string Interval for instance logs cleaner |
| instanceLogsCleanerMaxAge required | string Max age for instance logs to retain |
{- "sparkEventLogsCleanerEnabled": true,
- "sparkEventLogsCleanerInterval": "string",
- "sparkEventLogsCleanerMaxAge": "string",
- "sparkEventLogsCompactionEnabled": true,
- "sparkEventLogsCompactionMaxFilesToRetain": 0,
- "instanceLogsCleanerEnabled": true,
- "instanceLogsCleanerInterval": "string",
- "instanceLogsCleanerMaxAge": "string"
}| id required | string The instance image Id |
| name required | string Imported image name |
| tag required | string Image tag |
| description | string Optional image description |
required | object (InstanceImageOriginInfo) An instance image origin |
| baseImageId | string Image Id of base image |
| digest required | string Image digest |
required | object (InstanceImageTypeInfo) Image type |
| status required | string Enum: "Init" "Pending" "Verified" "Rejected" "MarkedForDelete" "Deleted" Image status |
| statusDescription | string Status description |
| createdBy required | string User that created instance image |
| createdAt required | string <date-time> Instance creation timestamp |
| updatedAt required | string <date-time> Instance last update timestamp |
{- "id": "string",
- "name": "string",
- "tag": "string",
- "description": "string",
- "origin": {
- "repository": "string",
- "tag": "string",
- "isPrivate": true,
- "taskId": "string"
}, - "baseImageId": "string",
- "digest": "string",
- "type": {
- "kind": "Spark",
- "version": "string"
}, - "status": "Init",
- "statusDescription": "string",
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}| 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 |
| ownerRole | string Role that owns the instance |
required | object Any additional details about the instance |
{- "instanceId": "string",
- "name": "string",
- "type": "string",
- "createdBy": "string",
- "ownerRole": "string",
- "details": {
- "property1": "string",
- "property2": "string"
}
}| name required | string Image name |
| repository required | string Registry with repository name to import |
| tag required | string Image tag to import |
| description | string Optional image description |
| allowInsecure required | boolean Allow insecure registry connection |
| isPrivate required | boolean Registry require credentials for accessing |
object (Credentials) Credentials required for accessing registry |
{- "name": "string",
- "repository": "string",
- "tag": "string",
- "description": "string",
- "allowInsecure": true,
- "isPrivate": true,
- "credentials": {
- "username": "string",
- "password": "string"
}
}| nextPageToken | string The next page token to use or "" if there are no more pages. |
Array of objects (UserInstanceImageInfo) A page of results. |
{- "nextPageToken": "string",
- "result": [
- {
- "id": "string",
- "name": "string",
- "tag": "string",
- "description": "string",
- "type": {
- "kind": "Spark",
- "version": "string"
}, - "status": "Init"
}
]
}| 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) |
| instanceImageId | string Instance image id to use (you must have permission to use it) |
| secretUploadIds | Array of strings Optional - secret uploads Secrets will be set as environment variables in the Spark driver and executors. |
| secretUploads | Array of strings DEPRECATED - use secretUploadIds |
Array of objects (UploadMapping) Optional - file uploads (read only) | |
Array of objects (InlineUploadMapping) 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",
- "instanceImageId": "string",
- "secretUploadIds": [
- "string"
], - "secretUploads": [
- "string"
], - "fileUploads": [
- {
- "uploadId": "string",
- "mountPath": "string"
}
], - "inlineFileUploads": [
- {
- "comment": "string",
- "fileName": "string",
- "uploadType": "Text",
- "data": "string",
- "mountPath": "string"
}
], - "options": [
- "EncryptCommunication"
]
}| 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"
}| 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"
]
}| 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"
}| 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 (Common) |
{- "common": {
- "applicationName": "string",
- "sparkProperties": {
- "property1": "string",
- "property2": "string"
}, - "jars": [
- "string"
], - "pythonFiles": [
- "string"
], - "files": [
- "string"
], - "archives": [
- "string"
], - "environmentVariables": {
- "property1": "string",
- "property2": "string"
}, - "resourcePool": "string",
- "instanceImageId": "string",
- "secretUploadIds": [
- "string"
], - "secretUploads": [
- "string"
], - "fileUploads": [
- {
- "uploadId": "string",
- "mountPath": "string"
}
], - "inlineFileUploads": [
- {
- "comment": "string",
- "fileName": "string",
- "uploadType": "Text",
- "data": "string",
- "mountPath": "string"
}
], - "options": [
- "EncryptCommunication"
]
}
}| sparkEventLogsCleanerEnabled | boolean Enable Spark event logs cleaner |
| sparkEventLogsCleanerInterval | string Interval for Spark event logs cleaner |
| sparkEventLogsCleanerMaxAge | string Max age for Spark event logs to retain |
| sparkEventLogsCompactionEnabled | boolean Enable Spark event logs compaction |
| sparkEventLogsCompactionMaxFilesToRetain | string Max files to retain after Spark event logs compaction |
| instanceLogsCleanerEnabled | boolean Enable instance logs cleaner |
| instanceLogsCleanerInterval | string Interval for instance logs cleaner |
| instanceLogsCleanerMaxAge | string Max age for instance logs to retain |
{- "sparkEventLogsCleanerEnabled": true,
- "sparkEventLogsCleanerInterval": "string",
- "sparkEventLogsCleanerMaxAge": "string",
- "sparkEventLogsCompactionEnabled": true,
- "sparkEventLogsCompactionMaxFilesToRetain": "string",
- "instanceLogsCleanerEnabled": true,
- "instanceLogsCleanerInterval": "string",
- "instanceLogsCleanerMaxAge": "string"
}| id required | string The instance image Id |
| name required | string Imported image name |
| tag required | string Image tag |
| description | string Optional image description |
required | object (UserInstanceImageTypeInfo) Image type |
| status required | string Enum: "Init" "Pending" "Verified" "Rejected" "MarkedForDelete" "Deleted" Image status |
{- "id": "string",
- "name": "string",
- "tag": "string",
- "description": "string",
- "type": {
- "kind": "Spark",
- "version": "string"
}, - "status": "Init"
}| kind required | string Enum: "Spark" "Notebook" An instance image type |
| version required | string An instance image version |
{- "kind": "Spark",
- "version": "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"
}
}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"
}
}| uploadId required | string The upload ID |
| mountPath required | string The path to mount the files at. This must be a partial path
as an uploads directory will be prefixed to it. E.g.
if |
{- "uploadId": "string",
- "mountPath": "string"
}| username required | string Username |
| password required | string Password |
{- "username": "string",
- "password": "string"
}| id required | string The instance image Id |
| name required | string Imported image name |
| repository required | string Registry with repository name to import |
| tag required | string Image tag to import |
| description | string Optional image description |
| allowInsecure required | boolean Allow insecure registry connection |
| isPrivate required | boolean Registry require credentials for accessing |
| status required | string Enum: "New" "InProgress" "Completed" "Failed" Instance image import status |
| statusDescription | string Optional status description |
| createdBy required | string User that created instance image import |
| createdAt required | string <date-time> Instance import creation timestamp |
| updatedAt required | string <date-time> Instance import last update timestamp |
{- "id": "string",
- "name": "string",
- "repository": "string",
- "tag": "string",
- "description": "string",
- "allowInsecure": true,
- "isPrivate": true,
- "status": "New",
- "statusDescription": "string",
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}| 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 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"
]
}| comment required | string Comment or description. Used only for your own reference purposes. |
| fileName required | string The name/file name of the upload |
| uploadType required | string Enum: "Text" "Binary" Whether this is a text or binary upload |
| data required | string The upload data. For binary, it must be Base64 encoded. |
| mountPath required | string The path to mount the files at. This must be a partial path
as an uploads directory will be prefixed to it. E.g.
if |
{- "comment": "string",
- "fileName": "string",
- "uploadType": "Text",
- "data": "string",
- "mountPath": "string"
}| activatedAt required | string The system maintenance enabled at |
| activatedBy required | string User that activated the system maintenance |
| activatedVersion required | string The version of the system for which the maintenance mode has been activated |
| deactivatedAt | string The system maintenance deactivated at |
| deactivatedBy | string User that deactivated the system maintenance |
| deactivatedVersion | string The version of the system for which the maintenance mode has been deactivated |
{- "activatedAt": "string",
- "activatedBy": "string",
- "activatedVersion": "string",
- "deactivatedAt": "string",
- "deactivatedBy": "string",
- "deactivatedVersion": "string"
}Refresh global storage usage response
null| message required | string Name of the resource |
| description | string Violation description |
| fields | Array of strings Any fields/values that weren't found |
{- "message": "string",
- "description": "string",
- "fields": [
- "string"
]
}| message | string Description of the error |
| fields | Array of strings Any fields/values that are invalid or incorrect |
{- "message": "string",
- "fields": [
- "string"
]
}