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.
/workloads/compute-profilesList 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
Filter compute profiles by team.
"A1B2C3D4E5"120"^[A-Z0-9]{1,20}$"limitinteger
The maximum number of items to list.
"int32"0100100markerstring
The pagination token returned from the previous list operation.
Responses
Responses
The list of compute profiles.
/workloads/compute-profilesCreate 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
Responses
Responses
The compute profile was created successfully.
/workloads/compute-profiles/{computeProfile}Describe a compute profile
Returns the full detail of a compute profile.
Responses
Responses
The compute profile was retrieved successfully.
/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.
/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
Responses
Responses
The compute profile was updated successfully.
/workloads/compute-profiles/{computeProfile}/referencesGet 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.
/workloads/runtime-profilesList runtime profiles
Returns runtime profiles visible to the caller. When teamId is provided, only runtime profiles linked to that team are returned.
Parameters
teamIdstring
Filter runtime profiles by team.
"A1B2C3D4E5"120"^[A-Z0-9]{1,20}$"limitinteger
The maximum number of items to list.
"int32"0100100markerstring
The pagination token returned from the previous list operation.
Responses
Responses
The list of runtime profiles.
/workloads/runtime-profilesCreate 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
Responses
Responses
The runtime profile was created successfully.
/workloads/runtime-profiles/{runtimeProfile}Describe a runtime profile
Returns the full detail of a runtime profile.
Responses
Responses
The runtime profile was retrieved successfully.
/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.
/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
Responses
Responses
The runtime profile was updated successfully.
/workloads/runtime-profiles/{runtimeProfile}/referencesGet 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.
/workloads/runtime-profiles/{runtimeProfile}/teamsList runtime profile teams
Returns all teams that have been granted access to the specified runtime profile.
Parameters
runtimeProfilerequired
A runtime profile ID.
Responses
Responses
A list of runtime profile teams is returned.
/workloads/runtime-profiles/{runtimeProfile}/teamsAdd teams to a runtime profile
Grants one or more teams access to the specified runtime profile.
Parameters
runtimeProfilerequired
A runtime profile ID.
Request Body
Responses
Responses
The teams were added to the runtime profile successfully.
/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
A runtime profile ID.
teamrequired
The team ID.
Responses
Responses
The team was removed from the runtime profile successfully.