Cloudflare

获取 Worker

获取 Worker

GET /cloudflare/client/v4/accounts/{account_id}/workers/workers/{worker_id}

Get a Worker by ID or name.

支持状态: supported

参数

名称位置类型必填说明
account_idpathstringtrueAny value; your account comes from the API key.
worker_idpathstringtrueWorker ID or name.

响应

HTTP 200

Success

application/json

名称类型说明
successbooleanAlways true on success.
errorsarray<any>Always empty on success.
messagesarray<any>Always empty on success.
resultobject
result.idstringWorker ID, prefixed wkr_.
result.namestringUnique per account; lowercase letters, digits and single hyphens.
result.subdomainobjectPublic address of the Worker.
result.tagsarray<string>Up to 8 tags.
result.observabilityobjectObservability settings.
result.logpushbooleanAlways false: unlike Cloudflare, Logpush is not offered.
result.created_onstringWhen the Worker was created.
result.updated_onstringWhen the Worker last changed.
result.deployed_onstring | nullWhen the current deployment became active; null before the first deployment.
result.praxisobjectPlatform fields: lifecycle status, labels, and soft-delete timestamps.
result_infoobjectPresent on list responses.
result_info.pageintegerPage number.
result_info.per_pageintegerPage size.
result_info.countintegerItems on this page.
导出

本页内容