enforce 预检报告(owner/admin):未持照 org 键清单 + 不合规钉档(⊄F∩C 将置 null)+ 越界 app 引用(⊄M∩C 将被裁);reportHash = 升 enforce 的确认锚(报告变则 hash 变)
GET
/v1/org-governance/preflight
const url = 'https://api.tansr.com/v1/org-governance/preflight';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.tansr.com/v1/org-governance/preflight \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”x-tansr-org
string
Org 作用域声明(org 公开 id);服务端校验成员资格与角色,非成员恒 404、角色不够 403
Responses
Section titled “Responses”预检报告
Media typeapplication/json
object
reportHash
required
报告内容稳定 hash(sha256 截断);PUT 升 enforce 的确认锚
string
generatedAt
required
string
unlicensedOrgKeys
required
License_mode 升 required 将被软锁的 org 键清单(无 active license)
Array<object>
object
appId
required
string
name
required
string
licenseStatus
required
string
nonCompliantPins
required
Example
{ "resourceMode": "legacy", "licenseMode": "disabled", "nonCompliantPins": [ { "segment": "adjudicator" } ], "outOfCeilingAppRefs": [ { "resourceType": "model" } ]}本文是否有帮助?
感谢反馈,我们会持续改进这篇文章。