Skip to content

Reusable workload settings. A compute profile sets the cluster, execution mode, instance type and endpoint limits; a runtime profile sets the engine image, libraries, environment variables and catalogs.

GET/workloads/compute-profiles

List compute profiles

Returns compute profiles visible to the caller. When teamId is provided, only compute profiles whose cluster is linked to that team are returned.

Parameters

teamIdstring
teamId

Filter compute profiles by team.

Type
string
Example"A1B2C3D4E5"
Min Length
1
Max Length
20
Pattern
"^[A-Z0-9]{1,20}$"
limitinteger
limit

The maximum number of items to list.

Type
integer
Format
"int32"
Minimum
0
Maximum
100
Default
100
markerstring
marker

The pagination token returned from the previous list operation.

Type
string
Responses

Responses​

The list of compute profiles.

application/json
JSON
{
  
"items": [
  
  
{
  
  
  
"id": "A1B2C3D4E5",
  
  
  
"name": "Production Cluster",
  
  
  
"workloadType": "string",
  
  
  
"clusterId": "A1B2C3D4E5",
  
  
  
"config": {
  
  
  
  
"sail": {
  
  
  
  
  
"executionMode": "string",
  
  
  
  
  
"compute": {
  
  
  
  
  
  
"driver": {
  
  
  
  
  
  
  
"instanceType": "c8g.2xlarge",
  
  
  
  
  
  
  
"ebsConfig": {
  
  
  
  
  
  
  
  
"volumeType": "string",
  
  
  
  
  
  
  
  
"volumeSize": 100,
  
  
  
  
  
  
  
  
"iops": 0,
  
  
  
  
  
  
  
  
"throughput": 0,
  
  
  
  
  
  
  
  
"deleteOnTermination": true
  
  
  
  
  
  
  
}
  
  
  
  
  
  
},
  
  
  
  
  
  
"worker": {
  
  
  
  
  
  
  
"instanceType": "c8g.4xlarge",
  
  
  
  
  
  
  
"ebsConfig": {
  
  
  
  
  
  
  
  
"volumeType": "string",
  
  
  
  
  
  
  
  
"volumeSize": 100,
  
  
  
  
  
  
  
  
"iops": 0,
  
  
  
  
  
  
  
  
"throughput": 0,
  
  
  
  
  
  
  
  
"deleteOnTermination": true
  
  
  
  
  
  
  
},
  
  
  
  
  
  
  
"maxNodes": 4,
  
  
  
  
  
  
  
"capacityType": "string"
  
  
  
  
  
  
}
  
  
  
  
  
}
  
  
  
  
}
  
  
  
},
  
  
  
"endpointLimits": {
  
  
  
  
"spark_connect": 0
  
  
  
},
  
  
  
"createdAt": "string",
  
  
  
"createdBy": "A1B2C3D4E5",
  
  
  
"updatedAt": "string",
  
  
  
"updatedBy": "A1B2C3D4E5",
  
  
  
"capabilities": {
  
  
  
  
"run": {
  
  
  
  
  
"allowed": true,
  
  
  
  
  
"blocked": {
  
  
  
  
  
  
"label": "string",
  
  
  
  
  
  
"message": "string"
  
  
  
  
  
}
  
  
  
  
},
  
  
  
  
"storeFiles": {
  
  
  
  
  
"allowed": true,
  
  
  
  
  
"blocked": {
  
  
  
  
  
  
"label": "string",
  
  
  
  
  
  
"message": "string"
  
  
  
  
  
}
  
  
  
  
},
  
  
  
  
"runContinuous": {
  
  
  
  
  
"allowed": true,
  
  
  
  
  
"blocked": {
  
  
  
  
  
  
"label": "string",
  
  
  
  
  
  
"message": "string"
  
  
  
  
  
}
  
  
  
  
},
  
  
  
  
"warning": {
  
  
  
  
  
"label": "string",
  
  
  
  
  
"message": "string"
  
  
  
  
}
  
  
  
},
  
  
  
"notebookCount": 0,
  
  
  
"jobCount": 0,
  
  
  
"activeWorkloadCount": 0,
  
  
  
"clusterVisibility": "string"
  
  
}
  
],
  
"marker": "string",
  
"included": {
  
  
"clusters": [
  
  
  
{
  
  
  
  
"id": "A1B2C3D4E5",
  
  
  
  
"name": "Production Cluster",
  
  
  
  
"createdAt": "string",
  
  
  
  
"createdBy": "A1B2C3D4E5",
  
  
  
  
"updatedAt": "string",
  
  
  
  
"updatedBy": "A1B2C3D4E5",
  
  
  
  
"externalClusterId": "A1B2C3D4E5",
  
  
  
  
"region": "us-east-1",
  
  
  
  
"connectionId": "A1B2C3D4E5",
  
  
  
  
"networkId": "A1B2C3D4E5",
  
  
  
  
"externalStatus": "string",
  
  
  
  
"operationId": "A1B2C3D4E5",
  
  
  
  
"defaultInstanceType": "m8g.large",
  
  
  
  
"capabilities": {
  
  
  
  
  
"run": {
  
  
  
  
  
  
"allowed": true,
  
  
  
  
  
  
"blocked": {
  
  
  
  
  
  
  
"label": "string",
  
  
  
  
  
  
  
"message": "string"
  
  
  
  
  
  
}
  
  
  
  
  
}
  
  
  
  
}
  
  
  
}
  
  
]
  
}
}
POST/workloads/compute-profiles

Create a compute profile

Creates a named compute profile for a cluster. It can be reused by jobs, sessions, and notebooks that have access to the cluster. Once created, workloadType and clusterId are immutable. Access follows the teams linked to the cluster; a compute profile does not have a separate owning team.

Request Body​

application/json
JSON
{
  
"name": "Production Cluster",
  
"workloadType": "string",
  
"clusterId": "A1B2C3D4E5",
  
"config": {
  
  
"sail": {
  
  
  
"executionMode": "string",
  
  
  
"compute": {
  
  
  
  
"driver": {
  
  
  
  
  
"instanceType": "c8g.2xlarge",
  
  
  
  
  
"ebsConfig": {
  
  
  
  
  
  
"volumeType": "string",
  
  
  
  
  
  
"volumeSize": 100,
  
  
  
  
  
  
"iops": 0,
  
  
  
  
  
  
"throughput": 0,
  
  
  
  
  
  
"deleteOnTermination": true
  
  
  
  
  
}
  
  
  
  
},
  
  
  
  
"worker": {
  
  
  
  
  
"instanceType": "c8g.4xlarge",
  
  
  
  
  
"ebsConfig": {
  
  
  
  
  
  
"volumeType": "string",
  
  
  
  
  
  
"volumeSize": 100,
  
  
  
  
  
  
"iops": 0,
  
  
  
  
  
  
"throughput": 0,
  
  
  
  
  
  
"deleteOnTermination": true
  
  
  
  
  
},
  
  
  
  
  
"maxNodes": 4,
  
  
  
  
  
"capacityType": "string"
  
  
  
  
}
  
  
  
}
  
  
}
  
},
  
"endpointLimits": {
  
  
"spark_connect": 0
  
}
}
Responses

Responses​

The compute profile was created successfully.

application/json
JSON
{
  
"id": "A1B2C3D4E5",
  
"name": "Production Cluster",
  
"workloadType": "string",
  
"clusterId": "A1B2C3D4E5",
  
"config": {
  
  
"sail": {
  
  
  
"executionMode": "string",
  
  
  
"compute": {
  
  
  
  
"driver": {
  
  
  
  
  
"instanceType": "c8g.2xlarge",
  
  
  
  
  
"ebsConfig": {
  
  
  
  
  
  
"volumeType": "string",
  
  
  
  
  
  
"volumeSize": 100,
  
  
  
  
  
  
"iops": 0,
  
  
  
  
  
  
"throughput": 0,
  
  
  
  
  
  
"deleteOnTermination": true
  
  
  
  
  
}
  
  
  
  
},
  
  
  
  
"worker": {
  
  
  
  
  
"instanceType": "c8g.4xlarge",
  
  
  
  
  
"ebsConfig": {
  
  
  
  
  
  
"volumeType": "string",
  
  
  
  
  
  
"volumeSize": 100,
  
  
  
  
  
  
"iops": 0,
  
  
  
  
  
  
"throughput": 0,
  
  
  
  
  
  
"deleteOnTermination": true
  
  
  
  
  
},
  
  
  
  
  
"maxNodes": 4,
  
  
  
  
  
"capacityType": "string"
  
  
  
  
}
  
  
  
}
  
  
}
  
},
  
"endpointLimits": {
  
  
"spark_connect": 0
  
},
  
"createdAt": "string",
  
"createdBy": "A1B2C3D4E5",
  
"updatedAt": "string",
  
"updatedBy": "A1B2C3D4E5"
}
GET/workloads/compute-profiles/{computeProfile}

Describe a compute profile

Returns the full detail of a compute profile.

Responses

Responses​

The compute profile was retrieved successfully.

application/json
JSON
{
  
"id": "A1B2C3D4E5",
  
"name": "Production Cluster",
  
"workloadType": "string",
  
"clusterId": "A1B2C3D4E5",
  
"config": {
  
  
"sail": {
  
  
  
"executionMode": "string",
  
  
  
"compute": {
  
  
  
  
"driver": {
  
  
  
  
  
"instanceType": "c8g.2xlarge",
  
  
  
  
  
"ebsConfig": {
  
  
  
  
  
  
"volumeType": "string",
  
  
  
  
  
  
"volumeSize": 100,
  
  
  
  
  
  
"iops": 0,
  
  
  
  
  
  
"throughput": 0,
  
  
  
  
  
  
"deleteOnTermination": true
  
  
  
  
  
}
  
  
  
  
},
  
  
  
  
"worker": {
  
  
  
  
  
"instanceType": "c8g.4xlarge",
  
  
  
  
  
"ebsConfig": {
  
  
  
  
  
  
"volumeType": "string",
  
  
  
  
  
  
"volumeSize": 100,
  
  
  
  
  
  
"iops": 0,
  
  
  
  
  
  
"throughput": 0,
  
  
  
  
  
  
"deleteOnTermination": true
  
  
  
  
  
},
  
  
  
  
  
"maxNodes": 4,
  
  
  
  
  
"capacityType": "string"
  
  
  
  
}
  
  
  
}
  
  
}
  
},
  
"endpointLimits": {
  
  
"spark_connect": 0
  
},
  
"createdAt": "string",
  
"createdBy": "A1B2C3D4E5",
  
"updatedAt": "string",
  
"updatedBy": "A1B2C3D4E5"
}
DELETE/workloads/compute-profiles/{computeProfile}

Delete a compute profile

Deletes a compute profile. Jobs and notebooks that pick it prevent deletion, as do its external data grants; each answers 409. Active workloads keep running on what they started with. After deletion, the compute profile is removed from listings and cannot be used by new workloads.

Responses

Responses​

The requested operation was done successfully.

PATCH/workloads/compute-profiles/{computeProfile}

Update a compute profile

Updates a compute profile's mutable fields. workloadType and clusterId are immutable. An edit reaches job runs created after it, the next notebook start, new sessions, and a session relaunched with the current workload profiles. Running and queued job runs and sessions keep their settings snapshot. A session relaunched with a copy of an earlier session's settings snapshot keeps that settings snapshot. A job run refused when it was created has no settings snapshot, so its retry takes the edit (see RetryJobRun). A job run refused at deploy took its settings snapshot when it was created, and its retry reuses it. A continuous job takes the edit when a job version is published or activated, or when the job is paused and resumed. When LakeSail replaces a continuous job's ended job run, the new job run takes the edit only if no job run of the active job version has a settings snapshot.

Request Body​

application/json
JSON
{
  
"name": "Production Cluster",
  
"config": {
  
  
"sail": {
  
  
  
"executionMode": "string",
  
  
  
"compute": {
  
  
  
  
"driver": {
  
  
  
  
  
"instanceType": "c8g.2xlarge",
  
  
  
  
  
"ebsConfig": {
  
  
  
  
  
  
"volumeType": "string",
  
  
  
  
  
  
"volumeSize": 100,
  
  
  
  
  
  
"iops": 0,
  
  
  
  
  
  
"throughput": 0,
  
  
  
  
  
  
"deleteOnTermination": true
  
  
  
  
  
}
  
  
  
  
},
  
  
  
  
"worker": {
  
  
  
  
  
"instanceType": "c8g.4xlarge",
  
  
  
  
  
"ebsConfig": {
  
  
  
  
  
  
"volumeType": "string",
  
  
  
  
  
  
"volumeSize": 100,
  
  
  
  
  
  
"iops": 0,
  
  
  
  
  
  
"throughput": 0,
  
  
  
  
  
  
"deleteOnTermination": true
  
  
  
  
  
},
  
  
  
  
  
"maxNodes": 4,
  
  
  
  
  
"capacityType": "string"
  
  
  
  
}
  
  
  
}
  
  
}
  
},
  
"endpointLimits": {
  
  
"spark_connect": 0
  
}
}
Responses

Responses​

The compute profile was updated successfully.

application/json
JSON
{
  
"id": "A1B2C3D4E5",
  
"name": "Production Cluster",
  
"workloadType": "string",
  
"clusterId": "A1B2C3D4E5",
  
"config": {
  
  
"sail": {
  
  
  
"executionMode": "string",
  
  
  
"compute": {
  
  
  
  
"driver": {
  
  
  
  
  
"instanceType": "c8g.2xlarge",
  
  
  
  
  
"ebsConfig": {
  
  
  
  
  
  
"volumeType": "string",
  
  
  
  
  
  
"volumeSize": 100,
  
  
  
  
  
  
"iops": 0,
  
  
  
  
  
  
"throughput": 0,
  
  
  
  
  
  
"deleteOnTermination": true
  
  
  
  
  
}
  
  
  
  
},
  
  
  
  
"worker": {
  
  
  
  
  
"instanceType": "c8g.4xlarge",
  
  
  
  
  
"ebsConfig": {
  
  
  
  
  
  
"volumeType": "string",
  
  
  
  
  
  
"volumeSize": 100,
  
  
  
  
  
  
"iops": 0,
  
  
  
  
  
  
"throughput": 0,
  
  
  
  
  
  
"deleteOnTermination": true
  
  
  
  
  
},
  
  
  
  
  
"maxNodes": 4,
  
  
  
  
  
"capacityType": "string"
  
  
  
  
}
  
  
  
}
  
  
}
  
},
  
"endpointLimits": {
  
  
"spark_connect": 0
  
},
  
"createdAt": "string",
  
"createdBy": "A1B2C3D4E5",
  
"updatedAt": "string",
  
"updatedBy": "A1B2C3D4E5"
}
GET/workloads/compute-profiles/{computeProfile}/references

Get compute profile references

Returns the resources that currently reference a compute profile. Notebooks and jobs that pick it are durable references that prevent deletion until repointed. Active workloads are listed but do not prevent deletion: they keep running on what they started with.

Responses

Responses​

The compute profile references were retrieved successfully.

application/json
JSON
{
  
"notebooks": {
  
  
"count": 0,
  
  
"items": [
  
  
  
{
  
  
  
  
"id": "A1B2C3D4E5",
  
  
  
  
"name": "string",
  
  
  
  
"status": "string"
  
  
  
}
  
  
],
  
  
"blocksDeletion": true
  
},
  
"jobs": {
  
  
"count": 0,
  
  
"items": [
  
  
  
{
  
  
  
  
"id": "A1B2C3D4E5",
  
  
  
  
"name": "string",
  
  
  
  
"status": "string"
  
  
  
}
  
  
],
  
  
"blocksDeletion": true
  
},
  
"activeWorkloads": {
  
  
"count": 0,
  
  
"items": [
  
  
  
{
  
  
  
  
"id": "A1B2C3D4E5",
  
  
  
  
"name": "string",
  
  
  
  
"status": "string"
  
  
  
}
  
  
],
  
  
"blocksDeletion": true
  
},
  
"deletionBlocked": true,
  
"deletionBlockedReason": "string"
}
GET/workloads/runtime-profiles

List runtime profiles

Returns runtime profiles visible to the caller. When teamId is provided, only runtime profiles linked to that team are returned.

Parameters

teamIdstring
teamId

Filter runtime profiles by team.

Type
string
Example"A1B2C3D4E5"
Min Length
1
Max Length
20
Pattern
"^[A-Z0-9]{1,20}$"
limitinteger
limit

The maximum number of items to list.

Type
integer
Format
"int32"
Minimum
0
Maximum
100
Default
100
markerstring
marker

The pagination token returned from the previous list operation.

Type
string
Responses

Responses​

The list of runtime profiles.

application/json
JSON
{
  
"items": [
  
  
{
  
  
  
"id": "A1B2C3D4E5",
  
  
  
"name": "Production Cluster",
  
  
  
"workloadType": "string",
  
  
  
"config": {
  
  
  
  
"sail": {
  
  
  
  
  
"imageUri": "public.ecr.aws/lakehq/sail:latest",
  
  
  
  
  
"libraries": [
  
  
  
  
  
  
{
  
  
  
  
  
  
  
"pypi": {
  
  
  
  
  
  
  
  
"package": "string",
  
  
  
  
  
  
  
  
"repo": "string"
  
  
  
  
  
  
  
},
  
  
  
  
  
  
  
"requirements": {
  
  
  
  
  
  
  
  
"source": "string",
  
  
  
  
  
  
  
  
"uri": "string"
  
  
  
  
  
  
  
},
  
  
  
  
  
  
  
"whl": "string"
  
  
  
  
  
  
}
  
  
  
  
  
],
  
  
  
  
  
"envVars": {
  
  
  
  
  
  
"additionalProperties": {
  
  
  
  
  
  
  
"type": "string",
  
  
  
  
  
  
  
"value": "string"
  
  
  
  
  
  
}
  
  
  
  
  
}
  
  
  
  
}
  
  
  
},
  
  
  
"catalogs": [
  
  
  
  
{
  
  
  
  
  
"catalogId": "A1B2C3D4E5",
  
  
  
  
  
"name": "Production Cluster"
  
  
  
  
}
  
  
  
],
  
  
  
"defaultCatalogId": "A1B2C3D4E5",
  
  
  
"createdAt": "string",
  
  
  
"createdBy": "A1B2C3D4E5",
  
  
  
"updatedAt": "string",
  
  
  
"updatedBy": "A1B2C3D4E5",
  
  
  
"notebookCount": 0,
  
  
  
"jobCount": 0,
  
  
  
"activeWorkloadCount": 0
  
  
}
  
],
  
"marker": "string"
}
POST/workloads/runtime-profiles

Create a runtime profile

Creates a named runtime profile: the engine image, libraries, environment variables and catalogs a workload runs with. Jobs, sessions and notebooks of the teams linked to it can use it. Once created, workloadType is immutable. The caller must be able to create runtime profiles in every team it names, and every team must be able to read the catalogs and secrets the runtime profile references. A runtime profile in no team needs that permission organization-wide.

Request Body​

application/json
JSON
{
  
"name": "Production Cluster",
  
"workloadType": "string",
  
"config": {
  
  
"sail": {
  
  
  
"imageUri": "public.ecr.aws/lakehq/sail:latest",
  
  
  
"libraries": [
  
  
  
  
{
  
  
  
  
  
"pypi": {
  
  
  
  
  
  
"package": "string",
  
  
  
  
  
  
"repo": "string"
  
  
  
  
  
},
  
  
  
  
  
"requirements": {
  
  
  
  
  
  
"source": "string",
  
  
  
  
  
  
"uri": "string"
  
  
  
  
  
},
  
  
  
  
  
"whl": "string"
  
  
  
  
}
  
  
  
],
  
  
  
"envVars": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"type": "string",
  
  
  
  
  
"value": "string"
  
  
  
  
}
  
  
  
}
  
  
}
  
},
  
"catalogs": [
  
],
  
"defaultCatalogId": "A1B2C3D4E5",
  
"teamIds": [
  
  
"A1B2C3D4E5"
  
]
}
Responses

Responses​

The runtime profile was created successfully.

application/json
JSON
{
  
"id": "A1B2C3D4E5",
  
"name": "Production Cluster",
  
"workloadType": "string",
  
"config": {
  
  
"sail": {
  
  
  
"imageUri": "public.ecr.aws/lakehq/sail:latest",
  
  
  
"libraries": [
  
  
  
  
{
  
  
  
  
  
"pypi": {
  
  
  
  
  
  
"package": "string",
  
  
  
  
  
  
"repo": "string"
  
  
  
  
  
},
  
  
  
  
  
"requirements": {
  
  
  
  
  
  
"source": "string",
  
  
  
  
  
  
"uri": "string"
  
  
  
  
  
},
  
  
  
  
  
"whl": "string"
  
  
  
  
}
  
  
  
],
  
  
  
"envVars": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"type": "string",
  
  
  
  
  
"value": "string"
  
  
  
  
}
  
  
  
}
  
  
}
  
},
  
"catalogs": [
  
],
  
"defaultCatalogId": "A1B2C3D4E5",
  
"createdAt": "string",
  
"createdBy": "A1B2C3D4E5",
  
"updatedAt": "string",
  
"updatedBy": "A1B2C3D4E5"
}
GET/workloads/runtime-profiles/{runtimeProfile}

Describe a runtime profile

Returns the full detail of a runtime profile.

Responses

Responses​

The runtime profile was retrieved successfully.

application/json
JSON
{
  
"id": "A1B2C3D4E5",
  
"name": "Production Cluster",
  
"workloadType": "string",
  
"config": {
  
  
"sail": {
  
  
  
"imageUri": "public.ecr.aws/lakehq/sail:latest",
  
  
  
"libraries": [
  
  
  
  
{
  
  
  
  
  
"pypi": {
  
  
  
  
  
  
"package": "string",
  
  
  
  
  
  
"repo": "string"
  
  
  
  
  
},
  
  
  
  
  
"requirements": {
  
  
  
  
  
  
"source": "string",
  
  
  
  
  
  
"uri": "string"
  
  
  
  
  
},
  
  
  
  
  
"whl": "string"
  
  
  
  
}
  
  
  
],
  
  
  
"envVars": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"type": "string",
  
  
  
  
  
"value": "string"
  
  
  
  
}
  
  
  
}
  
  
}
  
},
  
"catalogs": [
  
],
  
"defaultCatalogId": "A1B2C3D4E5",
  
"createdAt": "string",
  
"createdBy": "A1B2C3D4E5",
  
"updatedAt": "string",
  
"updatedBy": "A1B2C3D4E5"
}
DELETE/workloads/runtime-profiles/{runtimeProfile}

Delete a runtime profile

Deletes a runtime profile. Jobs and notebooks that pick it prevent deletion with a 409. Active workloads keep running on what they started with. After deletion, the runtime profile is removed from listings and cannot be used by new workloads.

Responses

Responses​

The requested operation was done successfully.

PATCH/workloads/runtime-profiles/{runtimeProfile}

Update a runtime profile

Updates a runtime profile's mutable fields. workloadType is immutable. An edit reaches job runs created after it, the next notebook start, new sessions, and a session relaunched with the current workload profiles. Running and queued job runs and sessions keep their settings snapshot. A session relaunched with a copy of an earlier session's settings snapshot keeps that settings snapshot. A job run refused when it was created has no settings snapshot, so its retry takes the edit (see RetryJobRun). A job run refused at deploy took its settings snapshot when it was created, and its retry reuses it. A continuous job takes the edit when a job version is published or activated, or when the job is paused and resumed. When LakeSail replaces a continuous job's ended job run, the new job run takes the edit only if no job run of the active job version has a settings snapshot.

Request Body​

application/json
JSON
{
  
"name": "Production Cluster",
  
"config": {
  
  
"sail": {
  
  
  
"imageUri": "public.ecr.aws/lakehq/sail:latest",
  
  
  
"libraries": [
  
  
  
  
{
  
  
  
  
  
"pypi": {
  
  
  
  
  
  
"package": "string",
  
  
  
  
  
  
"repo": "string"
  
  
  
  
  
},
  
  
  
  
  
"requirements": {
  
  
  
  
  
  
"source": "string",
  
  
  
  
  
  
"uri": "string"
  
  
  
  
  
},
  
  
  
  
  
"whl": "string"
  
  
  
  
}
  
  
  
],
  
  
  
"envVars": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"type": "string",
  
  
  
  
  
"value": "string"
  
  
  
  
}
  
  
  
}
  
  
}
  
},
  
"catalogs": [
  
],
  
"defaultCatalogId": "A1B2C3D4E5"
}
Responses

Responses​

The runtime profile was updated successfully.

application/json
JSON
{
  
"id": "A1B2C3D4E5",
  
"name": "Production Cluster",
  
"workloadType": "string",
  
"config": {
  
  
"sail": {
  
  
  
"imageUri": "public.ecr.aws/lakehq/sail:latest",
  
  
  
"libraries": [
  
  
  
  
{
  
  
  
  
  
"pypi": {
  
  
  
  
  
  
"package": "string",
  
  
  
  
  
  
"repo": "string"
  
  
  
  
  
},
  
  
  
  
  
"requirements": {
  
  
  
  
  
  
"source": "string",
  
  
  
  
  
  
"uri": "string"
  
  
  
  
  
},
  
  
  
  
  
"whl": "string"
  
  
  
  
}
  
  
  
],
  
  
  
"envVars": {
  
  
  
  
"additionalProperties": {
  
  
  
  
  
"type": "string",
  
  
  
  
  
"value": "string"
  
  
  
  
}
  
  
  
}
  
  
}
  
},
  
"catalogs": [
  
],
  
"defaultCatalogId": "A1B2C3D4E5",
  
"createdAt": "string",
  
"createdBy": "A1B2C3D4E5",
  
"updatedAt": "string",
  
"updatedBy": "A1B2C3D4E5"
}
GET/workloads/runtime-profiles/{runtimeProfile}/references

Get runtime profile references

Returns the resources that currently reference a runtime profile. Notebooks and jobs that pick it are durable references that prevent deletion until repointed. Active workloads are listed but do not prevent deletion: they keep running on what they started with.

Responses

Responses​

The runtime profile references were retrieved successfully.

application/json
JSON
{
  
"notebooks": {
  
  
"count": 0,
  
  
"items": [
  
  
  
{
  
  
  
  
"id": "A1B2C3D4E5",
  
  
  
  
"name": "string",
  
  
  
  
"status": "string"
  
  
  
}
  
  
],
  
  
"blocksDeletion": true
  
},
  
"jobs": {
  
  
"count": 0,
  
  
"items": [
  
  
  
{
  
  
  
  
"id": "A1B2C3D4E5",
  
  
  
  
"name": "string",
  
  
  
  
"status": "string"
  
  
  
}
  
  
],
  
  
"blocksDeletion": true
  
},
  
"activeWorkloads": {
  
  
"count": 0,
  
  
"items": [
  
  
  
{
  
  
  
  
"id": "A1B2C3D4E5",
  
  
  
  
"name": "string",
  
  
  
  
"status": "string"
  
  
  
}
  
  
],
  
  
"blocksDeletion": true
  
},
  
"deletionBlocked": true,
  
"deletionBlockedReason": "string"
}
GET/workloads/runtime-profiles/{runtimeProfile}/teams

List runtime profile teams

Returns all teams that have been granted access to the specified runtime profile.

Parameters

runtimeProfilerequired
runtimeProfile*

A runtime profile ID.

Required
Responses

Responses​

A list of runtime profile teams is returned.

application/json
JSON
{
  
"items": [
  
  
{
  
  
  
"runtimeProfileId": "A1B2C3D4E5",
  
  
  
"teamId": "A1B2C3D4E5",
  
  
  
"createdAt": "string",
  
  
  
"createdBy": "A1B2C3D4E5",
  
  
  
"updatedAt": "string",
  
  
  
"updatedBy": "A1B2C3D4E5"
  
  
}
  
]
}
POST/workloads/runtime-profiles/{runtimeProfile}/teams

Add teams to a runtime profile

Grants one or more teams access to the specified runtime profile.

Parameters

runtimeProfilerequired
runtimeProfile*

A runtime profile ID.

Required

Request Body​

application/json
JSON
{
  
"teamIds": [
  
  
"A1B2C3D4E5"
  
]
}
Responses

Responses​

The teams were added to the runtime profile successfully.

application/json
JSON
{
  
"items": [
  
  
{
  
  
  
"runtimeProfileId": "A1B2C3D4E5",
  
  
  
"teamId": "A1B2C3D4E5",
  
  
  
"createdAt": "string",
  
  
  
"createdBy": "A1B2C3D4E5",
  
  
  
"updatedAt": "string",
  
  
  
"updatedBy": "A1B2C3D4E5"
  
  
}
  
]
}
DELETE/workloads/runtime-profiles/{runtimeProfile}/teams/{team}

Remove a team from a runtime profile

Revokes a team's access to the specified runtime profile. Refused while a job or notebook of the team picks the runtime profile and none of its other teams is linked to it. Also refused while the runtime profile's libraries install a workspace file uploaded to the team that none of its other teams owns; remove those libraries first.

Parameters

runtimeProfilerequired
runtimeProfile*

A runtime profile ID.

Required
teamrequired
team*

The team ID.

Required
Responses

Responses​

The team was removed from the runtime profile successfully.

Can't find the answer here? Email us: support@lakesail.com