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
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
org | path | string | yes | for example "org_01h455vb4pex5vsknk084sn02q" |
zone | path | string | yes | for example "zone_01h455vb4pex5vsknk084sn02q" |
origin | path | string | yes | for example "origin_01h455vb4pex5vsknk084sn02q" |
limit | query | integer | no | 1 to 100; default 50 |
cursor | query | string | no | 0 to 200 characters |
x-obhut-management-assignment | header | string | no | Select 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
| Field | Type | Required | Notes |
|---|---|---|---|
items | array of object | yes | |
items[].id | string | yes | for example "dep_01h455vb4pex5vsknk084sn02q" |
items[].zoneId | string | yes | for example "zone_01h455vb4pex5vsknk084sn02q" |
items[].originId | string | yes | for example "origin_01h455vb4pex5vsknk084sn02q" |
items[].status | string | yes | `uploading` until every file is stored, then `ready`: it may be activated. One of "uploading", "ready" |
items[].spa | boolean | yes | |
items[].fileCount | integer | yes | 0 to ∞ |
items[].totalSize | integer | yes | 0 to ∞ |
items[].active | boolean | yes | |
items[].createdAt | string (date-time) | yes | UTC, ISO 8601. |
items[].expiresAt | string (date-time) or null | yes | |
items[].activatedAt | string (date-time) or null | yes | |
items[].previewedAt | string (date-time) or null | yes | |
items[].previews | array of string (uri) | yes | |
nextCursor | string or null | yes |