Docs

API reference · Static hosting

A static origin's deployments, newest first

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

Parameters

NameInTypeRequiredNotes
orgpathstringyesfor example "org_01h455vb4pex5vsknk084sn02q"
zonepathstringyesfor example "zone_01h455vb4pex5vsknk084sn02q"
originpathstringyesfor example "origin_01h455vb4pex5vsknk084sn02q"
limitqueryintegerno1 to 100; default 50
cursorquerystringno0 to 200 characters
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
itemsarray of objectyes
items[].idstringyesfor example "dep_01h455vb4pex5vsknk084sn02q"
items[].zoneIdstringyesfor example "zone_01h455vb4pex5vsknk084sn02q"
items[].originIdstringyesfor example "origin_01h455vb4pex5vsknk084sn02q"
items[].statusstringyes`uploading` until every file is stored, then `ready`: it may be activated. One of "uploading", "ready"
items[].spabooleanyes
items[].fileCountintegeryes0 to ∞
items[].totalSizeintegeryes0 to ∞
items[].activebooleanyes
items[].createdAtstring (date-time)yesUTC, ISO 8601.
items[].expiresAtstring (date-time) or nullyes
items[].activatedAtstring (date-time) or nullyes
items[].previewedAtstring (date-time) or nullyes
items[].previewsarray of string (uri)yes
nextCursorstring or nullyes