方法路径摘要认证
POST/v1/admin/control-upgrade-checksCheck local control-plane upgrade eligibility登录会话

契约文件:api/openapi/v1/control.yaml

接口详情

POST /v1/admin/control-upgrade-checks

Check local control-plane upgrade eligibility

operationId
checkControlUpgradeEligibility
认证
  • 登录会话:主控登录后的 Bearer 会话,由客户本人在自己的主控里使用;插件不能要求客户交出会话。
所需权限

全部需要:control.upgrades.check

说明(契约原文)

Requires control.upgrades.check in a platform scope. The decision re-verifies the locally cached signed entitlement lease, checks its release channel and version range, then evaluates the current locally cached signed platform policy. The license service is not called by this request. Business denials return 200 with eligible=false and a stable reason; authentication, validation, and idempotency failures retain their normal HTTP status. An identical idempotent replay returns the original decision without appending another audit event.

参数

checkControlUpgradeEligibility 参数
名称位置类型必填说明
Idempotency-Keyheaderstring是—

请求体

application/json · 必填:是

checkControlUpgradeEligibility 请求体
名称类型必填说明
componentstring是—
current_versionstring是Canonical SemVer without a v prefix or build metadata.
channelstring是—

响应

checkControlUpgradeEligibility 响应
状态码说明
200Eligible or a stable business denial based only on verified local state.

字段:eligible: boolean reason: string: eligible / entitlement_unavailable / entitlement_invalid / entitlement_state_denied / entitlement_channel_mismatch / entitlement_version_denied / platform_policy_stale / release_channel_denied component: string current_version: string channel: string entitlement?: ControlUpgradeEntitlementDecision policy: ControlUpgradePolicyDecision

400请求体或参数不合法。
401认证失败或会话已失效。
403当前身份没有执行该操作的权限。
409请求的状态与已有资源或幂等记录冲突。
500服务内部故障,请求未完成。

失败时怎么办

  • 400 按字段说明修正参数或请求体再发;不要原样重试。
  • 401 检查凭据格式、是否过期或被轮换。
  • 403 检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。
  • 409 先回读资源当前状态;同一操作重试保持原 Idempotency-Key 和原请求内容。
  • 500 结果未知:先按资源 ID 或列表回读确认,再决定是否用原 Idempotency-Key 重试。

↑ 回到列表