Docs

API reference · Static hosting

Whether a deployment is prepared, and what its preparation found

GET/v1/orgs/{org}/zones/{zone}/origins/{origin}/deployments/{deployment}/report
Permission
hosting.deployments.read
Operation
hosting.deployments.report

Parameters

NameInTypeRequiredNotes
orgpathstringyesfor example "org_01h455vb4pex5vsknk084sn02q"
zonepathstringyesfor example "zone_01h455vb4pex5vsknk084sn02q"
originpathstringyesfor example "origin_01h455vb4pex5vsknk084sn02q"
deploymentpathstringyesfor example "dep_01h455vb4pex5vsknk084sn02q"
x-obhut-management-assignmentheaderstringnoSelect one staff assignment. Direct membership remains the default. Bound API tokens use their stored source and ignore this selector. For example "masg_01h455vb4pex5vsknk084sn02q"

Response 200

FieldTypeRequiredNotes
deploymentIdstringyesfor example "dep_01h455vb4pex5vsknk084sn02q"
preparationstringyes`uploading` while its upload is not complete, `pending` until the worker prepared it, `retrying` once a preparation of it failed and the worker tries again later, then `prepared`. One of "uploading", "pending", "retrying", "prepared"
preparedAtstring (date-time) or nullyes
reportobject or nullyes
report.rulesobjectyes
report.rules.problemsarray of objectyes
report.rules.problems[].filestringyesone of "_redirects", "_headers"
report.rules.problems[].lineintegeryes0 to ∞
report.rules.problems[].reasonstringyes
report.rules.problems[].codestringnoone of "basic_auth"
report.hostsarray of objectno0 to 100 items
report.hosts[].hoststringyes
report.hosts[].serviceobject or nullyes
report.hosts[].service.namestringyes
report.hosts[].service.operatorstringyes
report.hosts[].service.categorystringyesone of "fonts", "analytics", "tag manager", "video", "maps", "captcha", "script CDN", "social", "chat", "consent", "payments", "marketing", "scheduling"
report.hosts[].referencesarray of stringyes
report.hosts[].inMarkupbooleanyes
report.hosts[].filesarray of stringyes0 to 10 items
report.hosts[].fileCountintegeryesmore than 0
report.hostCountintegerno0 to ∞
report.scanobjectno
report.scan.filesintegeryes0 to ∞
report.scan.skippedarray of objectyes
report.scan.skipped[].pathstringyes
report.scan.skipped[].reasonstringyesone of "too_large", "limit"
report.metadataobjectno
report.metadata.filesintegeryes0 to ∞
report.metadata.cleanedintegeryes0 to ∞
report.metadata.savedBytesintegeryes0 to ∞
report.metadata.skippedarray of objectyes0 to 100 items
report.metadata.skipped[].pathstringyes
report.metadata.skipped[].reasonstringyesone of "malformed", "no_transform", "capacity", "derived_limit", "larger"
report.metadata.skippedCountintegeryes0 to ∞
report.fontsobjectno
report.fonts.familiesarray of objectyes
report.fonts.families[].familystringyes
report.fonts.families[].packagestringyes
report.fonts.families[].licensestringyes
report.fonts.rewrittenintegeryes0 to ∞
report.fonts.untouchedarray of objectyes0 to 100 items
report.fonts.untouched[].pathstringyes
report.fonts.untouched[].addressstringyes
report.fonts.untouched[].reasonstringyesone of "text", "effect", "icons", "color", "whole_font", "endpoint", "script", "markup", "syntax", "unknown_family", "unknown_style", "unsupported_axis", "catalog", "limit", "encoding", "integrity", "csp", "base", "no_transform", "capacity", "derived_limit"
report.fonts.untouchedCountintegeryes0 to ∞
encodingsobjectyes
encodings.pendingintegeryes0 to ∞
encodings.keptintegeryes0 to ∞
encodings.discardedintegeryes0 to ∞
encodings.savedBytesintegeryes0 to ∞
optimizationPausedbooleanyesTrue while the organization's derived bytes (fonts, cleaned images and Brotli bodies) leave no room under the platform cap `derivedBytes` for what this deployment still waits for: the allowance is spent, or smaller than a file whose Brotli body is still to make. New optimizations wait and the files they would change are served as uploaded, until deletions free room; what was optimized before stays.