检索指定分析器生成的访问分析结果列表
功能介绍
检索指定分析器生成的访问分析结果列表。
URI
POST /v5/analyzers/{analyzer_id}/findings
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
analyzer_id |
是 |
String |
分析器的唯一标识符。 最小长度:1 最大长度:36 |
请求参数
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
filters |
否 |
Array of FindingFilter objects |
匹配要返回的访问分析结果的筛选器。 数组长度:1 - 20 |
|
limit |
否 |
Integer |
单页最大结果数。 |
|
marker |
否 |
String |
页面标记。 |
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
criterion |
是 |
Criterion object |
要在查找筛选器中使用的条件。最多只能有一个运算符。 |
|
key |
是 |
String |
过滤键。
|
响应参数
状态码:200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
findings |
Array of FindingSummary objects |
访问分析结果列表。 |
|
page_info |
PageInfo object |
页面的信息。 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
action |
Array of strings |
允许外部主体使用的操作。 |
|
analyzed_at |
String |
分析资源的时间。 |
|
condition |
Array of FindingCondition objects |
分析的策略语句中导致访问分析结果的条件。 |
|
created_at |
String |
生成访问分析结果的时间。 |
|
finding_type |
String |
访问分析结果类型。
|
|
id |
String |
访问分析结果的唯一标识符。 |
|
is_public |
Boolean |
表示生成访问分析结果的策略是否允许公共访问资源。 |
|
principal |
FindingPrincipal object |
访问信任区内资源的外部主体。 |
|
resource |
String |
资源的唯一资源标识符。 |
|
resource_id |
String |
资源的唯一标识符。 最小长度:1 最大长度:36 |
|
resource_owner_account |
String |
拥有资源的账号ID。 |
|
resource_project_id |
String |
资源所属的项目标识符 最大长度:36 |
|
resource_type |
String |
资源的类型。
|
|
sources |
Array of strings |
访问分析结果的来源,这指示如何授予生成访问分析结果的访问权限。 |
|
status |
String |
访问分析结果当前状态。
|
|
updated_at |
String |
更新访问分析结果的时间。 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
identifier |
String |
主体身份的标识符。 |
|
type |
String |
主体身份的类型。
|
请求示例
检索指定分析器生成的结果列表。
POST https://{hostname}/v5/analyzers/{analyzer_id}/findings
{
"filters" : [ {
"criterion" : {
"eq" : [ "iam:agency" ]
},
"key" : "resource_type"
} ],
"limit" : 100,
"marker" : "{marker_string}"
}
响应示例
状态码:200
OK
{
"findings" : [ {
"action" : [ "sts:agencies:assume" ],
"analyzed_at" : "2023-09-07T08:04:41.698Z",
"condition" : [ {
"key" : "g:PrincipalOrgId",
"value" : "org_id"
} ],
"created_at" : "2023-09-07T08:04:41.698Z",
"id" : "{finding_id}",
"is_public" : false,
"principal" : {
"identifier" : "{domain_id}",
"type" : "account"
},
"resource" : "iam::{domain_id}:agency:{agency_name}",
"resource_owner_account" : "{domain_id}",
"resource_id" : "{agency_id}",
"resource_type" : "iam:agency",
"status" : "active",
"updated_at" : "2023-09-07T08:04:41.698Z"
} ],
"page_info" : {
"current_count" : 1,
"next_marker" : null
}
}
状态码
|
状态码 |
描述 |
|---|---|
|
200 |
OK |
错误码
请参见错误码。