Skip to main content
GET
列出代码扫描 Profile

权限

需要使用在企业级别具有 ViewAccountCodeScans 权限的服务用户个人访问令牌

行为

按最新优先的顺序返回 Profile 摘要 (不含指导文本) ,包括组织所有的 Profile 和账户级共享的 Profile (共享 Profile 的 org_idnull) 。每个摘要均包含 Profile 的 mode (discoveringest) 和 scan_type,用于确定是否可将其传递给启动代码扫描启动摄取扫描 可选按 org_ids 过滤;结果使用不透明游标 (after / first) 分页。使用获取代码扫描 Profile读取 Profile 的完整指导内容。组织作用域对应的接口为列出代码扫描 Profile (组织)

授权

Authorization
string
header
必填

服务用户凭据(前缀:cog_)

查询参数

after
string | null
first
integer
默认值:100
必填范围: 1 <= x <= 200
org_ids
string[] | null

仅返回对这些组织可见的 Profile。默认为账户中的所有组织。

响应

成功响应

items
CodeScanProfileSummaryResponse · object[]
必填
end_cursor
string | null

用于获取下一页的游标;如果这是最后一页,则为 None。

has_next_page
boolean
默认值:false

此页之后是否还有更多项。

total
integer | null

可选的总数(为提升性能可省略)。