跳转到内容
EN

获取 Worker

GET /application/v1/workers/{worker_id}

Get a Worker. expand returns related objects in the same response.

支持状态: supported

参数

名称位置类型必填说明
worker_idpathstringtrueWorker ID (wkr_…).
expandquerystringfalseComma-separated: versions, deployments, components, secrets, grants.

响应

HTTP 200

Success

application/json

名称 类型 说明
id string Worker ID, prefixed wkr_.
name string Unique per account; lowercase letters, digits and single hyphens.
subdomain object Public address of the Worker.
subdomain.enabled boolean Whether the public subdomain serves this Worker.
subdomain.url string Public URL of the Worker.
tags array<string> Up to 8 tags.
observability object Observability settings.
observability.enabled boolean Whether logs are collected.
logpush boolean Always false: unlike Cloudflare, Logpush is not offered.
created_on string When the Worker was created.
updated_on string When the Worker last changed.
deployed_on string | null When the current deployment became active; null before the first deployment.
praxis object Platform fields: lifecycle status, labels, and soft-delete timestamps.
praxis.status string Worker status: draft (no deployment yet), active (serving), suspended (stopped by an administrator), deleted (soft-deleted, restorable for 7 days), purging (resources being removed), purged (gone).
praxis.current_deployment_id string | null ID of the active deployment.
praxis.labels object Up to 16 key-value labels for your own grouping.
praxis.access string Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
praxis.deleted_on string | null When the Worker was deleted.
praxis.purge_on string | null When a deleted Worker is permanently removed.
praxis.suspended_reason string | null Why an administrator suspended the Worker.
expanded object Present only for the members named in expand.
expanded.versions object Versions of the Worker, newest first.
expanded.deployments object Deployments of the Worker, newest first.
expanded.components array<object> Components of the Worker.
expanded.secrets array<object> Secrets of the Worker (names only).
expanded.grants array<object> Grants of the Worker.