Cloudflare

获取部署

获取部署

GET /cloudflare/client/v4/accounts/{account_id}/workers/scripts/{script_name}/deployments/{deployment_id}

Get one deployment.

支持状态: supported

参数

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

响应

HTTP 200

Success

application/json

名称类型说明
successbooleanAlways true on success.
errorsarray<any>Always empty on success.
messagesarray<any>Always empty on success.
resultobject
result.idstringDeployment ID, prefixed dep_.
result.created_onstringWhen the deployment was created.
result.sourcestringOrigin: api, sdk, console or rollback.
result.strategystringRollout strategy.
result.versionsarray<object>Exactly one version at 100 percent.
result.annotationsobjectFree-form annotations.
result.author_emailstring | nullWho created the deployment.
result.praxisobjectPlatform fields: deployments run asynchronously, so track status, progress and error here.
result_infoobjectPresent on list responses.
result_info.pageintegerPage number.
result_info.per_pageintegerPage size.
result_info.countintegerItems on this page.
导出

本页内容