Get Python dependency configuration limits

Reads deployment dynamic configuration: enabled, size/line limits, index domains, and installation timeout. Not specific to a compute instance and does not change global configuration. Response examples use fixed illustrations, not defaults. Unassembled service returns 503/LIMITS_UNAVAILABLE; load failure returns 500/LIMITS_READ_FAILED.

GET https://api.moi.matrixorigin.cn/v5/compute-resources/py-deps-limits

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/py-deps-limits" \
  --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.

Successful response

{
  "code": "OK",
  "msg": "OK",
  "data": {
    "enabled": false,
    "max_bytes": 65536,
    "max_lines": 200,
    "allowed_index_hosts": [
      "pypi.org"
    ],
    "install_timeout_seconds": 300
  }
}

Field

Type

Description

code

string

OK on success.

msg

string

Response information; OK on success.

data

object

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