POST /v1/error-pages/assets/initiate
Initiate a content-addressed asset
- operationId
initiateErrorPageAsset- 认证
- API Key:请求头 Authorization: CdncaKey <key_id>.<secret>。有效权限是 Key 的范围与所有者当前权限的交集。
- 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
- 所需权限
契约没有单独标注权限码,权限要求见下方说明与 403 响应。
参数
initiateErrorPageAsset 参数| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|
Idempotency-Key | header | string | 是 | — |
|---|
X-Request-ID | header | string | 是 | — |
|---|
X-Trace-ID | header | string | 是 | — |
|---|
请求体
application/json · 必填:是
initiateErrorPageAsset 请求体| 名称 | 类型 | 必填 | 说明 |
|---|
scope_id | string(uuid) | 否 | Optional for tenant sessions and defaults to their own scope; required for platform sessions. |
|---|
name | string | 否 | Display name (the uploaded file name, or the page category and status); empty for an asset uploaded before names existed. No control characters, no surrounding blanks. |
|---|
mime_type | string: text/html / text/plain / application/json | 是 | — |
|---|
size_bytes | integer(int64) | 是 | — |
|---|
sha256 | string | 是 | — |
|---|
响应
initiateErrorPageAsset 响应| 状态码 | 说明 |
|---|
201 | Asset identity created in initiated state 字段:value: Asset replayed: boolean |
|---|
400 | Malformed or unknown input |
|---|
401 | Authentication is absent or invalid |
|---|
403 | Stable permission denial |
|---|
405 | The authenticated path exists but does not support the request method. |
|---|
409 | Idempotency, lifecycle, reference, or rule precedence conflict |
|---|
422 | Quota, static-content, or malware-scan rejection |
|---|
503 | Database, scanner, or content-store dependency is unavailable |
|---|
失败时怎么办
400 按字段说明修正参数或请求体再发;不要原样重试。401 检查凭据格式、是否过期或被轮换。403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。409 先回读资源当前状态;同一操作重试保持原 Idempotency-Key 和原请求内容。503 依赖暂不可用:稍后用原 Idempotency-Key 重试。
↑ 回到列表
DELETE /v1/error-pages/assets/{asset_id}
Mark an unreferenced asset for reconciled deletion
- operationId
deleteErrorPageAsset- 认证
- API Key:请求头 Authorization: CdncaKey <key_id>.<secret>。有效权限是 Key 的范围与所有者当前权限的交集。
- 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
- 所需权限
契约没有单独标注权限码,权限要求见下方说明与 403 响应。
参数
deleteErrorPageAsset 参数| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|
asset_id | path | string(uuid) | 是 | — |
|---|
If-Match | header | string | 是 | Quoted positive decimal rule or asset revision, for example `"3"`. |
|---|
Idempotency-Key | header | string | 是 | — |
|---|
X-Request-ID | header | string | 是 | — |
|---|
X-Trace-ID | header | string | 是 | — |
|---|
响应
deleteErrorPageAsset 响应| 状态码 | 说明 |
|---|
202 | Database transition committed; object cleanup is pending 字段:value: Asset replayed: boolean |
|---|
400 | Malformed or unknown input |
|---|
401 | Authentication is absent or invalid |
|---|
403 | Stable permission denial |
|---|
405 | The authenticated path exists but does not support the request method. |
|---|
404 | Resource is absent or hidden by tenant isolation |
|---|
409 | Idempotency, lifecycle, reference, or rule precedence conflict |
|---|
412 | Revision compare-and-swap failed |
|---|
503 | Database, scanner, or content-store dependency is unavailable |
|---|
失败时怎么办
400 按字段说明修正参数或请求体再发;不要原样重试。401 检查凭据格式、是否过期或被轮换。403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。404 资源不存在或不属于当前租户。409 先回读资源当前状态;同一操作重试保持原 Idempotency-Key 和原请求内容。412 版本已变:回读最新 ETag 后重新判断,再带新的 If-Match 提交。503 依赖暂不可用:稍后用原 Idempotency-Key 重试。
↑ 回到列表
GET /v1/error-pages/assets/{asset_id}/content
Read a ready asset's content
- operationId
getErrorPageAssetContent- 认证
- API Key:请求头 Authorization: CdncaKey <key_id>.<secret>。有效权限是 Key 的范围与所有者当前权限的交集。
- 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
- 所需权限
契约没有单独标注权限码,权限要求见下方说明与 403 响应。
说明(契约原文)
The stored body of a ready asset (error_pages.read), integrity checked against its sha256, so a site's error page can be edited as text (网站编辑 → 错误页面). A staged, scanning, rejected or deleted asset answers 409.
参数
getErrorPageAssetContent 参数| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|
asset_id | path | string(uuid) | 是 | — |
|---|
X-Request-ID | header | string | 否 | — |
|---|
X-Trace-ID | header | string | 否 | — |
|---|
响应
getErrorPageAssetContent 响应| 状态码 | 说明 |
|---|
200 | Asset metadata and its UTF-8 body 字段:asset: Asset content: string |
|---|
400 | Malformed or unknown input |
|---|
401 | Authentication is absent or invalid |
|---|
403 | Stable permission denial |
|---|
405 | The authenticated path exists but does not support the request method. |
|---|
404 | Resource is absent or hidden by tenant isolation |
|---|
409 | Idempotency, lifecycle, reference, or rule precedence conflict |
|---|
503 | Database, scanner, or content-store dependency is unavailable |
|---|
失败时怎么办
400 按字段说明修正参数或请求体再发;不要原样重试。401 检查凭据格式、是否过期或被轮换。403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。404 资源不存在或不属于当前租户。409 先回读资源当前状态;同一操作重试保持原 Idempotency-Key 和原请求内容。503 依赖暂不可用:稍后用原 Idempotency-Key 重试。
↑ 回到列表
PUT /v1/error-pages/assets/{asset_id}/content
Upload bounded asset content to staging
- operationId
uploadErrorPageAssetContent- 认证
- API Key:请求头 Authorization: CdncaKey <key_id>.<secret>。有效权限是 Key 的范围与所有者当前权限的交集。
- 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
- 所需权限
契约没有单独标注权限码,权限要求见下方说明与 403 响应。
参数
uploadErrorPageAssetContent 参数| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|
asset_id | path | string(uuid) | 是 | — |
|---|
Idempotency-Key | header | string | 是 | — |
|---|
X-Request-ID | header | string | 是 | — |
|---|
X-Trace-ID | header | string | 是 | — |
|---|
Content-Length | header | integer | 是 | — |
|---|
请求体
text/html, text/plain, application/json · 必填:是
响应
uploadErrorPageAssetContent 响应| 状态码 | 说明 |
|---|
200 | Content validated and staged 字段:value: Asset replayed: boolean |
|---|
400 | Malformed or unknown input |
|---|
401 | Authentication is absent or invalid |
|---|
403 | Stable permission denial |
|---|
405 | The authenticated path exists but does not support the request method. |
|---|
404 | Resource is absent or hidden by tenant isolation |
|---|
409 | Idempotency, lifecycle, reference, or rule precedence conflict |
|---|
422 | Quota, static-content, or malware-scan rejection |
|---|
503 | Database, scanner, or content-store dependency is unavailable |
|---|
失败时怎么办
400 按字段说明修正参数或请求体再发;不要原样重试。401 检查凭据格式、是否过期或被轮换。403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。404 资源不存在或不属于当前租户。409 先回读资源当前状态;同一操作重试保持原 Idempotency-Key 和原请求内容。503 依赖暂不可用:稍后用原 Idempotency-Key 重试。
↑ 回到列表
POST /v1/error-pages/assets/{asset_id}/finalize
Scan and finalize staged asset content
- operationId
finalizeErrorPageAsset- 认证
- API Key:请求头 Authorization: CdncaKey <key_id>.<secret>。有效权限是 Key 的范围与所有者当前权限的交集。
- 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
- 所需权限
契约没有单独标注权限码,权限要求见下方说明与 403 响应。
参数
finalizeErrorPageAsset 参数| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|
asset_id | path | string(uuid) | 是 | — |
|---|
Idempotency-Key | header | string | 是 | — |
|---|
X-Request-ID | header | string | 是 | — |
|---|
X-Trace-ID | header | string | 是 | — |
|---|
响应
finalizeErrorPageAsset 响应| 状态码 | 说明 |
|---|
200 | Scanner passed and final object is ready 字段:value: Asset replayed: boolean |
|---|
400 | Malformed or unknown input |
|---|
401 | Authentication is absent or invalid |
|---|
403 | Stable permission denial |
|---|
405 | The authenticated path exists but does not support the request method. |
|---|
404 | Resource is absent or hidden by tenant isolation |
|---|
409 | Idempotency, lifecycle, reference, or rule precedence conflict |
|---|
422 | Quota, static-content, or malware-scan rejection |
|---|
503 | Database, scanner, or content-store dependency is unavailable |
|---|
失败时怎么办
400 按字段说明修正参数或请求体再发;不要原样重试。401 检查凭据格式、是否过期或被轮换。403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。404 资源不存在或不属于当前租户。409 先回读资源当前状态;同一操作重试保持原 Idempotency-Key 和原请求内容。503 依赖暂不可用:稍后用原 Idempotency-Key 重试。
↑ 回到列表
GET /v1/error-pages/publication-snapshot
Read the latest deterministic publication source snapshot
- operationId
getErrorPagePublicationSnapshot- 认证
- API Key:请求头 Authorization: CdncaKey <key_id>.<secret>。有效权限是 Key 的范围与所有者当前权限的交集。
- 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
- 所需权限
契约没有单独标注权限码,权限要求见下方说明与 403 响应。
参数
getErrorPagePublicationSnapshot 参数| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|
X-Request-ID | header | string | 否 | — |
|---|
X-Trace-ID | header | string | 否 | — |
|---|
响应
getErrorPagePublicationSnapshot 响应| 状态码 | 说明 |
|---|
200 | Snapshot plus its control-plane digest and creation time 字段:policy: EdgePolicy snapshot_sha256: string created_at: string(date-time) |
|---|
400 | Malformed or unknown input |
|---|
401 | Authentication is absent or invalid |
|---|
403 | Stable permission denial |
|---|
405 | The authenticated path exists but does not support the request method. |
|---|
404 | Resource is absent or hidden by tenant isolation |
|---|
409 | Idempotency, lifecycle, reference, or rule precedence conflict |
|---|
503 | Database, scanner, or content-store dependency is unavailable |
|---|
失败时怎么办
400 按字段说明修正参数或请求体再发;不要原样重试。401 检查凭据格式、是否过期或被轮换。403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。404 资源不存在或不属于当前租户。409 先回读资源当前状态;同一操作重试保持原 Idempotency-Key 和原请求内容。503 依赖暂不可用:稍后用原 Idempotency-Key 重试。
↑ 回到列表
GET /v1/error-pages/scope-overrides
List current node and region error-page overrides
- operationId
listErrorPageScopeOverrides- 认证
- API Key:请求头 Authorization: CdncaKey <key_id>.<secret>。有效权限是 Key 的范围与所有者当前权限的交集。
- 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
- 所需权限
契约没有单独标注权限码,权限要求见下方说明与 403 响应。
参数
listErrorPageScopeOverrides 参数| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|
X-Request-ID | header | string | 否 | — |
|---|
X-Trace-ID | header | string | 否 | — |
|---|
响应
listErrorPageScopeOverrides 响应| 状态码 | 说明 |
|---|
200 | Active overrides with short display identifiers and no asset UUIDs 字段:items: array<ScopeOverride> total: integer |
|---|
400 | Malformed or unknown input |
|---|
401 | Authentication is absent or invalid |
|---|
403 | Stable permission denial |
|---|
405 | The authenticated path exists but does not support the request method. |
|---|
503 | Database, scanner, or content-store dependency is unavailable |
|---|
失败时怎么办
400 按字段说明修正参数或请求体再发;不要原样重试。401 检查凭据格式、是否过期或被轮换。403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。503 依赖暂不可用:稍后用原 Idempotency-Key 重试。
↑ 回到列表
POST /v1/error-pages/scope-overrides
Create or restore a node or region override
- operationId
createErrorPageScopeOverride- 认证
- API Key:请求头 Authorization: CdncaKey <key_id>.<secret>。有效权限是 Key 的范围与所有者当前权限的交集。
- 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
- 所需权限
契约没有单独标注权限码,权限要求见下方说明与 403 响应。
参数
createErrorPageScopeOverride 参数| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|
Idempotency-Key | header | string | 是 | — |
|---|
X-Request-ID | header | string | 是 | — |
|---|
X-Trace-ID | header | string | 是 | — |
|---|
请求体
application/json · 必填:是
createErrorPageScopeOverride 请求体| 名称 | 类型 | 必填 | 说明 |
|---|
target | object | object | 是 | — |
|---|
items | array<ScopeOverrideBindingInput> | 是 | — |
|---|
响应
createErrorPageScopeOverride 响应| 状态码 | 说明 |
|---|
201 | Append-only override revision committed 字段:value: ScopeOverride replayed: boolean |
|---|
400 | Malformed or unknown input |
|---|
401 | Authentication is absent or invalid |
|---|
403 | Stable permission denial |
|---|
404 | Resource is absent or hidden by tenant isolation |
|---|
405 | The authenticated path exists but does not support the request method. |
|---|
409 | Idempotency, lifecycle, reference, or rule precedence conflict |
|---|
503 | Database, scanner, or content-store dependency is unavailable |
|---|
失败时怎么办
400 按字段说明修正参数或请求体再发;不要原样重试。401 检查凭据格式、是否过期或被轮换。403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。404 资源不存在或不属于当前租户。409 先回读资源当前状态;同一操作重试保持原 Idempotency-Key 和原请求内容。503 依赖暂不可用:稍后用原 Idempotency-Key 重试。
↑ 回到列表
GET /v1/error-pages/scope-overrides/{override_display_id}
Read an override with verified immutable editor content
- operationId
getErrorPageScopeOverride- 认证
- API Key:请求头 Authorization: CdncaKey <key_id>.<secret>。有效权限是 Key 的范围与所有者当前权限的交集。
- 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
- 所需权限
契约没有单独标注权限码,权限要求见下方说明与 403 响应。
参数
getErrorPageScopeOverride 参数| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|
override_display_id | path | string | 是 | — |
|---|
X-Request-ID | header | string | 否 | — |
|---|
X-Trace-ID | header | string | 否 | — |
|---|
响应
getErrorPageScopeOverride 响应| 状态码 | 说明 |
|---|
200 | Override document without asset UUIDs, hashes, receipts, or storage locations 字段:display_id: string target: object | object items: array<ScopeOverrideItem> revision: integer(int64) updated_at: string(date-time) deleted?: boolean |
|---|
400 | Malformed or unknown input |
|---|
401 | Authentication is absent or invalid |
|---|
403 | Stable permission denial |
|---|
404 | Resource is absent or hidden by tenant isolation |
|---|
405 | The authenticated path exists but does not support the request method. |
|---|
409 | Idempotency, lifecycle, reference, or rule precedence conflict |
|---|
503 | Database, scanner, or content-store dependency is unavailable |
|---|
失败时怎么办
400 按字段说明修正参数或请求体再发;不要原样重试。401 检查凭据格式、是否过期或被轮换。403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。404 资源不存在或不属于当前租户。409 先回读资源当前状态;同一操作重试保持原 Idempotency-Key 和原请求内容。503 依赖暂不可用:稍后用原 Idempotency-Key 重试。
↑ 回到列表
PATCH /v1/error-pages/scope-overrides/{override_display_id}
Replace an override item set using compare-and-swap
- operationId
updateErrorPageScopeOverride- 认证
- API Key:请求头 Authorization: CdncaKey <key_id>.<secret>。有效权限是 Key 的范围与所有者当前权限的交集。
- 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
- 所需权限
契约没有单独标注权限码,权限要求见下方说明与 403 响应。
参数
updateErrorPageScopeOverride 参数| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|
override_display_id | path | string | 是 | — |
|---|
If-Match | header | string | 是 | Quoted positive decimal rule or asset revision, for example `"3"`. |
|---|
Idempotency-Key | header | string | 是 | — |
|---|
X-Request-ID | header | string | 是 | — |
|---|
X-Trace-ID | header | string | 是 | — |
|---|
请求体
application/json · 必填:是
updateErrorPageScopeOverride 请求体| 名称 | 类型 | 必填 | 说明 |
|---|
items | array<ScopeOverrideBindingInput> | 是 | — |
|---|
响应
updateErrorPageScopeOverride 响应| 状态码 | 说明 |
|---|
200 | New current override revision 字段:value: ScopeOverride replayed: boolean |
|---|
400 | Malformed or unknown input |
|---|
401 | Authentication is absent or invalid |
|---|
403 | Stable permission denial |
|---|
404 | Resource is absent or hidden by tenant isolation |
|---|
405 | The authenticated path exists but does not support the request method. |
|---|
409 | Idempotency, lifecycle, reference, or rule precedence conflict |
|---|
412 | Revision compare-and-swap failed |
|---|
503 | Database, scanner, or content-store dependency is unavailable |
|---|
失败时怎么办
400 按字段说明修正参数或请求体再发;不要原样重试。401 检查凭据格式、是否过期或被轮换。403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。404 资源不存在或不属于当前租户。409 先回读资源当前状态;同一操作重试保持原 Idempotency-Key 和原请求内容。412 版本已变:回读最新 ETag 后重新判断,再带新的 If-Match 提交。503 依赖暂不可用:稍后用原 Idempotency-Key 重试。
↑ 回到列表
DELETE /v1/error-pages/scope-overrides/{override_display_id}
Append a soft-delete override revision
- operationId
deleteErrorPageScopeOverride- 认证
- API Key:请求头 Authorization: CdncaKey <key_id>.<secret>。有效权限是 Key 的范围与所有者当前权限的交集。
- 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
- 所需权限
契约没有单独标注权限码,权限要求见下方说明与 403 响应。
参数
deleteErrorPageScopeOverride 参数| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|
override_display_id | path | string | 是 | — |
|---|
If-Match | header | string | 是 | Quoted positive decimal rule or asset revision, for example `"3"`. |
|---|
Idempotency-Key | header | string | 是 | — |
|---|
X-Request-ID | header | string | 是 | — |
|---|
X-Trace-ID | header | string | 是 | — |
|---|
响应
deleteErrorPageScopeOverride 响应| 状态码 | 说明 |
|---|
202 | Soft-delete revision committed; the target inherits its next available source 字段:value: ScopeOverride replayed: boolean |
|---|
400 | Malformed or unknown input |
|---|
401 | Authentication is absent or invalid |
|---|
403 | Stable permission denial |
|---|
404 | Resource is absent or hidden by tenant isolation |
|---|
405 | The authenticated path exists but does not support the request method. |
|---|
409 | Idempotency, lifecycle, reference, or rule precedence conflict |
|---|
412 | Revision compare-and-swap failed |
|---|
503 | Database, scanner, or content-store dependency is unavailable |
|---|
失败时怎么办
400 按字段说明修正参数或请求体再发;不要原样重试。401 检查凭据格式、是否过期或被轮换。403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。404 资源不存在或不属于当前租户。409 先回读资源当前状态;同一操作重试保持原 Idempotency-Key 和原请求内容。412 版本已变:回读最新 ETag 后重新判断,再带新的 If-Match 提交。503 依赖暂不可用:稍后用原 Idempotency-Key 重试。
↑ 回到列表
GET /v1/error-pages/slots
List the twelve canonical error-page slots in display order
- operationId
listErrorPageSlots- 认证
- API Key:请求头 Authorization: CdncaKey <key_id>.<secret>。有效权限是 Key 的范围与所有者当前权限的交集。
- 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
- 所需权限
契约没有单独标注权限码,权限要求见下方说明与 403 响应。
参数
listErrorPageSlots 参数| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|
X-Request-ID | header | string | 否 | — |
|---|
X-Trace-ID | header | string | 否 | — |
|---|
响应
listErrorPageSlots 响应| 状态码 | 说明 |
|---|
200 | All canonical slots, including slots that have never been bound 字段:items: array<SlotBinding> |
|---|
400 | Malformed or unknown input |
|---|
401 | Authentication is absent or invalid |
|---|
403 | Stable permission denial |
|---|
405 | The authenticated path exists but does not support the request method. |
|---|
503 | Database, scanner, or content-store dependency is unavailable |
|---|
失败时怎么办
400 按字段说明修正参数或请求体再发;不要原样重试。401 检查凭据格式、是否过期或被轮换。403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。503 依赖暂不可用:稍后用原 Idempotency-Key 重试。
↑ 回到列表
GET /v1/error-pages/slots/{slot_key}
Read a slot binding and its verified immutable content
- operationId
getErrorPageSlot- 认证
- API Key:请求头 Authorization: CdncaKey <key_id>.<secret>。有效权限是 Key 的范围与所有者当前权限的交集。
- 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
- 所需权限
契约没有单独标注权限码,权限要求见下方说明与 403 响应。
参数
getErrorPageSlot 参数| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|
slot_key | path | string: blacklist / http_400 / http_403 / waf_block / http_502 / http_504 / traffic_exceeded / package_expired / site_locked / domain_unconfigured / node_ip_access / connection_limit | 是 | — |
|---|
X-Request-ID | header | string | 否 | — |
|---|
X-Trace-ID | header | string | 否 | — |
|---|
响应
getErrorPageSlot 响应| 状态码 | 说明 |
|---|
200 | Current binding and UTF-8 content; an unbound slot carries the built-in page in effect 字段:binding: SlotBinding content: string source: string: override / builtin delivery: string: theme / fallback / none |
|---|
400 | Malformed or unknown input |
|---|
401 | Authentication is absent or invalid |
|---|
403 | Stable permission denial |
|---|
404 | Resource is absent or hidden by tenant isolation |
|---|
405 | The authenticated path exists but does not support the request method. |
|---|
409 | Idempotency, lifecycle, reference, or rule precedence conflict |
|---|
503 | Database, scanner, or content-store dependency is unavailable |
|---|
失败时怎么办
400 按字段说明修正参数或请求体再发;不要原样重试。401 检查凭据格式、是否过期或被轮换。403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。404 资源不存在或不属于当前租户。409 先回读资源当前状态;同一操作重试保持原 Idempotency-Key 和原请求内容。503 依赖暂不可用:稍后用原 Idempotency-Key 重试。
↑ 回到列表
PUT /v1/error-pages/slots/{slot_key}
Append a slot revision that binds a ready immutable asset
- operationId
bindErrorPageSlot- 认证
- API Key:请求头 Authorization: CdncaKey <key_id>.<secret>。有效权限是 Key 的范围与所有者当前权限的交集。
- 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
- 所需权限
契约没有单独标注权限码,权限要求见下方说明与 403 响应。
参数
bindErrorPageSlot 参数| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|
slot_key | path | string: blacklist / http_400 / http_403 / waf_block / http_502 / http_504 / traffic_exceeded / package_expired / site_locked / domain_unconfigured / node_ip_access / connection_limit | 是 | — |
|---|
If-Match | header | string | 是 | Quoted non-negative slot revision; use `"0"` for a slot that has never been bound. |
|---|
Idempotency-Key | header | string | 是 | — |
|---|
X-Request-ID | header | string | 是 | — |
|---|
X-Trace-ID | header | string | 是 | — |
|---|
请求体
application/json · 必填:是
bindErrorPageSlot 请求体| 名称 | 类型 | 必填 | 说明 |
|---|
asset_id | string(uuid) | 是 | — |
|---|
响应
bindErrorPageSlot 响应| 状态码 | 说明 |
|---|
200 | Current binding after compare-and-swap 字段:value: SlotBinding replayed: boolean |
|---|
400 | Malformed or unknown input |
|---|
401 | Authentication is absent or invalid |
|---|
403 | Stable permission denial |
|---|
404 | Resource is absent or hidden by tenant isolation |
|---|
405 | The authenticated path exists but does not support the request method. |
|---|
409 | Idempotency, lifecycle, reference, or rule precedence conflict |
|---|
412 | Revision compare-and-swap failed |
|---|
503 | Database, scanner, or content-store dependency is unavailable |
|---|
失败时怎么办
400 按字段说明修正参数或请求体再发;不要原样重试。401 检查凭据格式、是否过期或被轮换。403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。404 资源不存在或不属于当前租户。409 先回读资源当前状态;同一操作重试保持原 Idempotency-Key 和原请求内容。412 版本已变:回读最新 ETag 后重新判断,再带新的 If-Match 提交。503 依赖暂不可用:稍后用原 Idempotency-Key 重试。
↑ 回到列表
DELETE /v1/error-pages/slots/{slot_key}
Append an unbound revision and restore the built-in default
- operationId
unbindErrorPageSlot- 认证
- API Key:请求头 Authorization: CdncaKey <key_id>.<secret>。有效权限是 Key 的范围与所有者当前权限的交集。
- 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
- 所需权限
契约没有单独标注权限码,权限要求见下方说明与 403 响应。
参数
unbindErrorPageSlot 参数| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|
slot_key | path | string: blacklist / http_400 / http_403 / waf_block / http_502 / http_504 / traffic_exceeded / package_expired / site_locked / domain_unconfigured / node_ip_access / connection_limit | 是 | — |
|---|
If-Match | header | string | 是 | Quoted non-negative slot revision; use `"0"` for a slot that has never been bound. |
|---|
Idempotency-Key | header | string | 是 | — |
|---|
X-Request-ID | header | string | 是 | — |
|---|
X-Trace-ID | header | string | 是 | — |
|---|
响应
unbindErrorPageSlot 响应| 状态码 | 说明 |
|---|
200 | Current unbound slot revision 字段:value: SlotBinding replayed: boolean |
|---|
400 | Malformed or unknown input |
|---|
401 | Authentication is absent or invalid |
|---|
403 | Stable permission denial |
|---|
404 | Resource is absent or hidden by tenant isolation |
|---|
405 | The authenticated path exists but does not support the request method. |
|---|
409 | Idempotency, lifecycle, reference, or rule precedence conflict |
|---|
412 | Revision compare-and-swap failed |
|---|
503 | Database, scanner, or content-store dependency is unavailable |
|---|
失败时怎么办
400 按字段说明修正参数或请求体再发;不要原样重试。401 检查凭据格式、是否过期或被轮换。403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。404 资源不存在或不属于当前租户。409 先回读资源当前状态;同一操作重试保持原 Idempotency-Key 和原请求内容。412 版本已变:回读最新 ETag 后重新判断,再带新的 If-Match 提交。503 依赖暂不可用:稍后用原 Idempotency-Key 重试。
↑ 回到列表