Get available sessions
get
/20260430/aiDataPlatforms/{aiDataPlatformId}/workspaces/{workspaceKey}/notebook/api/sessions
Returns a list of all available sessions.
Request
Path Parameters
-
aiDataPlatformId(required): string
The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the AI Data Platform (Data Lake) instance.
-
workspaceKey(required): string
The key of the Workspace
Query Parameters
-
agentFlowKey: string
Agent flow key of the attached agent flow.
-
cluster_id: string
Cluster ID attached to a session.
-
path: string
Notebook file path attached to a session.
Header Parameters
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.
Response
Supported Media Types
- application/json
200 Response
Successful operation. List of available sessions is retrieved.
Headers
-
etag: string
For optimistic concurrency control. See `if-match`.
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : SessionCollection
Type:
objectA list of session summaries related to a workspace.
Show Source
-
items(required):
array items
List of sessions.
Nested Schema : items
Type:
arrayList of sessions.
Show Source
-
Array of:
object SessionSummary
Summary information about a notebook session.
Nested Schema : SessionSummary
Type:
objectSummary information about a notebook session.
Show Source
-
agentFlowKey:
string
Agent flow key of an agent flow.
-
cluster_id:
string
Cluster ID.
-
id:
string
UUID if the session.
-
kernel:
object KernelSummary
Kernel summary
-
lifecycleState:
string
lifecycleState of a Notebook Session.
-
name:
string
A user-friendly name for the session.
-
path:
string
Path to the session. A directory where notebook server is started and where notebooks are saved. For example, /data/test.ipynb.
-
type:
string
Type of session.
Nested Schema : KernelSummary
Type:
objectKernel summary
Show Source
-
connections:
integer
The number of active connections to this kernel.
-
execution_state:
string
Current execution state of the kernel. Typically 'idle' or 'busy', but may be other values, such as 'starting'.
-
id:
string
UUID of the kernel.
-
last_activity:
string
ISO 8601 timestamp for the last-seen activity on this kernel. Use this in combination with execution_state == 'idle' to identify which kernels have been idle since a given time. Timestamps will be UTC, indicated 'Z' suffix. Added in notebook server 5.0.
-
name(required):
string
Kernel spec name.
401 Response
Unauthorized (missing or expired credentials, and so on).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
404 Response
Not Found. The requested resource was not found.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
429 Response
Too Many Requests. Too many requests sent to the server in a short period.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
500 Response
Internal Server Error. The server encountered an unexpected condition preventing fulfilment of the request.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
Default Response
Unknown Error. Error is not recognized by the system.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.