Get clusters in a workspace
get
/20260430/aiDataPlatforms/{aiDataPlatformId}/workspaces/{workspaceKey}/clusters
Returns a list of all clusters in a given workspace.
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
-
displayName: string
Minimum Length:
1Maximum Length:255A filter to return only resources that match the given display name exactly. -
displayNameContains: string
A filter to return only resources that have a display name containing the text provided.
-
limit: integer
Minimum Value:
1Maximum Value:1000For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine).Default Value:100 -
page: string
Minimum Length:
1For list pagination. The value of the opc-next-page response header from the previous "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). -
sortBy: string
The field to sort by. You can provide only one sort order. Default order for `timeCreated` is descending. Default order for `displayName` is ascending.Default Value:
timeCreatedAllowed Values:[ "timeCreated", "displayName" ] -
sortOrder: string
The sort order to use, either ascending (`ASC`) or descending (`DESC`).Allowed Values:
[ "ASC", "DESC" ] -
state: string
A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
-
type: string
Cluster type. When the filter is not provided list shows all type of cluster - USER else it show only cluster of type chosen. Only clusters of type USER are attachable to a workspace notebook.
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 all clusters in workspace is retrieved.
Headers
-
opc-next-page: string
For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine).
-
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.
Root Schema : ClusterCollection
Type:
objectResults of a cluster list.
Show Source
-
items(required):
array items
List of Clusters.
Nested Schema : items
Type:
arrayList of Clusters.
Show Source
-
Array of:
object ClusterSummary
Summary information about a workspace cluster.
Nested Schema : ClusterSummary
Type:
objectSummary information about a workspace cluster.
Show Source
-
activeClusterResources:
object ActiveClusterResources
Active resources of a cluster.
-
attachedAgentFlowCount:
integer
Default Value:
oracle.doceng.json.BetterJsonNull@5e8f9e2dCount of agent flow attached to a specific cluster. -
attachedNotebooks:
array attachedNotebooks
List of notebooks attached to a specific cluster.
-
attachedSessions:
array attachedSessions
List of sessions attached to a specific cluster.
-
clusterRuntimeConfig:
object ClusterRuntimeConfig
Discriminator:
typeCluster runtime configurations. -
createdBy:
string
OCID of the user who created this record.
-
createdByName:
string
Name of the user who created this record.
-
description:
string
Minimum Length:
1Maximum Length:400Cluster description. -
displayName(required):
string
Cluster name.
-
driverConfig:
object DriverConfig
Driver configuration.
-
key(required):
string
Cluster key.
-
state(required):
string
The current state of the cluster.
-
stateDetails:
string
A message that describes the current state of the workspace cluster in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
-
stoppedBy:
string
OCID of the user who stopped the cluster. Value will be 'SYSTEM' if it was auto stopped.
-
stoppedByName:
string
Name of the user who stopped the cluster. Value will be 'SYSTEM' if it was auto stopped.
-
timeCreated(required):
string(date-time)
Date and time the cluster was created.
-
timeUpdated:
string(date-time)
Date and time the cluster was updated.
-
type(required):
string
Allowed Values:
[ "USER", "AGENT_FLOW_COMPUTE" ]ClusterType -
updatedBy:
string
OCID of the user who updated this record.
-
updatedByName:
string
Name of the user who updated this record.
-
workerConfig:
object WorkerConfig
Worker configuration.
Nested Schema : ActiveClusterResources
Type:
objectActive resources of a cluster.
Show Source
-
activeCores:
number(double)
Count of active cores.
-
activeExecutorCount:
number(double)
Count of active executors.
-
activeGpuCores:
number(double)
Count of active GPU cores.
-
activeGpuMemoryInGBs:
number(double)
Active GPU memory in GB.
-
activeMemoryInGBs:
number(double)
Active memory in GB.
Nested Schema : attachedNotebooks
Type:
arrayList of notebooks attached to a specific cluster.
Show Source
Nested Schema : attachedSessions
Type:
arrayList of sessions attached to a specific cluster.
Show Source
-
Array of:
object AttachedSession
Details of attached sessions to a cluster
Nested Schema : ClusterRuntimeConfig
Type:
objectDiscriminator:
typeCluster runtime configurations.
Show Source
-
initScripts:
array initScripts
Init script paths that are run in the order of definition.
-
type:
string
Default Value:
SPARKAllowed Values:[ "SPARK" ]Runtime type.
Nested Schema : DriverConfig
Type:
objectDriver configuration.
Show Source
-
driverNodeType:
string
Minimum Length:
1Maximum Length:255Node type of optional driver node that encodes the driver node shape and associated resources. -
driverShape:
string
Minimum Length:
1Maximum Length:255Shape of compute cluster driver instance. Example - VM.Standard2.x, VM.Standard.E3.Flex -
driverShapeConfig:
object ShapeConfig
Shape of the driver or executor if a flexible shape is used.
Nested Schema : WorkerConfig
Type:
objectWorker configuration.
Show Source
-
maxWorkerCount:
integer
Maximum number of workers. When this property is specified, the cluster is auto-scaled.
-
minWorkerCount:
integer
Minimum number of workers.
-
workerShape:
string
Minimum Length:
1Maximum Length:255Shape of the compute cluster executor instance. -
workerShapeConfig:
object ShapeConfig
Shape of the driver or executor if a flexible shape is used.
Nested Schema : AttachedSession
Type:
objectDetails of attached sessions to a cluster
Show Source
-
lastCommandRun:
string
The time of the last command of file was run in this cluster.
-
path:
string
The path of the attached file.
-
state:
string
Allowed Values:
[ "ACTIVE", "IDLE" ]The state of the attached file. -
type:
string
Allowed Values:
[ "NOTEBOOK", "FILE" ]The type of the attached session.
Nested Schema : initScripts
Type:
arrayInit script paths that are run in the order of definition.
Show Source
-
Array of:
object InitScriptPath
The path details of init script.
Nested Schema : InitScriptPath
Type:
objectThe path details of init script.
Show Source
-
destination(required):
string
Full path of the init script file. Example - /Workspace/Shared/Folder1/my-init.sh or /Volumes/catalogName/schemaName/volumeName/Shared/Folder1/my-init.sh.
Nested Schema : ShapeConfig
Type:
objectShape of the driver or executor if a flexible shape is used.
Show Source
-
gpus:
integer
Minimum Value:
0Total number of GPUs used for the driver or workers. -
memoryInGBs:
integer
Minimum Value:
16Amount of memory used for the driver or workers. -
ocpus:
integer
Minimum Value:
1Total number of OCPUs used for the driver or workers.
400 Response
Bad Request (invalid query parameters, malformed headers, 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.
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.