Get compute instance Python dependency observations

Returns saved observations matching the current desired SHA, for cloud providers and STARTING/READY/STOPPING instances. This is not every Worker or a live Pod list. data is an unpaginated array. No configured dependencies, no matching observations yet, or an unassembled read service can all produce empty results. An empty array does not establish absence of compute processes.

GET https://api.moi.matrixorigin.cn/v5/compute-resources/{id}/workers

Before you call this API

Set BASE_URL to the product API prefix https://api.moi.matrixorigin.cn/v5. For private deployments, use the corresponding product API URL.

Prepare identity and identifiers.

Request

curl --request GET \
  "$BASE_URL/compute-resources/$RESOURCE_ID/workers" \
  --header "X-API-Key: $MOI_KEY" \
  --header "X-Workspace-ID: $WORKSPACE_ID"

Parameter

Location

Type

Required

Description

X-Workspace-ID

Headers

string

Yes

Target Workspace in the same environment; there is no Workspace path segment.

id

Path

string

Yes

Compute instance ID.

Successful response

{
  "code": "OK",
  "msg": "OK",
  "data": [
    {
      "instance_id": "instance-example",
      "worker_type": "python-worker",
      "status": "READY",
      "py_requirements_sha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "py_requirements_status": "FAILED",
      "py_requirements_error": "example install failure"
    }
  ]
}

Field

Type

Description

code

string

OK on success.

msg

string

Response information; OK on success.

data

array (objects)

Response objects and omission conditions.

Error responses

Errors and recovery boundaries distinguishes Runner, Edge renewal, and compute observations. They do not share one numeric error table.

Last updated on