Obtaining Findings Generated for an Access Preview
Function
This API is used to obtain the findings generated for an access preview.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the following required identity policy-based permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
|
Action |
Access Level |
Resource Type (*: required) |
Condition Key |
Alias |
Dependencies |
|---|---|---|---|---|---|
|
AccessAnalyzer:analyzer:listPreviewFindings |
List |
analyzer * |
g:ResourceTag/<tag-key> |
- |
- |
URI
POST /v5/analyzers/{analyzer_id}/access-previews/{access_preview_id}/findings
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
analyzer_id |
Yes |
String |
Unique identifier of an analyzer Minimum: 1 Maximum: 36 |
|
access_preview_id |
Yes |
String |
Unique identifier of an access preview. Minimum: 1 Maximum: 36 |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
filters |
No |
Array of FindingFilter objects |
A filter to match the returned findings. Array Length: 1 - 20 |
|
limit |
No |
Integer |
Maximum number of results on a page |
|
marker |
No |
String |
Page marker |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
criterion |
Yes |
Criterion object |
Criteria in the filter. Only one operator is allowed. |
|
key |
Yes |
String |
Filter key.
|
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
contains |
No |
Array of strings |
Matching the "contains" operator in the filter Array Length: 1 - 20 |
|
eq |
No |
Array of strings |
Matching the "eq" operator in the filter Array Length: 1 - 20 |
|
exists |
No |
Boolean |
Matching the "exists" operator in the filter |
|
neq |
No |
Array of strings |
Matching the "neq" operator in the filter Array Length: 1 - 20 |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
findings |
Array of PreviewFinding objects |
List of findings generated by an access preview. |
|
page_info |
PageInfo object |
Information on the page |
|
Parameter |
Type |
Description |
|---|---|---|
|
action |
Array of strings |
Action that can be used by external principals. |
|
change_type |
String |
Finding change.
|
|
condition |
Array of FindingCondition objects |
Condition that generates findings for an access preview in the policy statement. |
|
created_at |
String |
Time when the findings were generated for an access preview. |
|
existing_finding_id |
String |
Unique identifier of a finding. |
|
existing_finding_status |
String |
Finding status.
|
|
id |
String |
Unique identifier of a finding. |
|
is_public |
Boolean |
Whether the policy that generates findings allows public access to resources. |
|
principal |
FindingPrincipal object |
An external principal that accesses resources in a zone of trust. |
|
resource |
String |
Unique identifier of a resource. |
|
resource_owner_account |
String |
ID of the account that owns resources. |
|
resource_type |
String |
Resource type.
|
|
sources |
Array of strings |
Source of findings, indicating how to grant access that generates the findings. |
|
status |
String |
Status after the change.
|
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
String |
Identifier or name of a condition key. |
|
value |
String |
Value of the condition key. |
|
Parameter |
Type |
Description |
|---|---|---|
|
identifier |
String |
Identifier of a principal. |
|
type |
String |
Type of a principal.
|
|
Parameter |
Type |
Description |
|---|---|---|
|
current_count |
Integer |
Number of items on the current page |
|
next_marker |
String |
If present, it indicates that the available output is more than the output contained in the current response. Use this value in the marker request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this operation until the next_marker response returns null. |
Example Requests
Obtaining findings generated for an access preview
POST https://{hostname}/v5/analyzers/{analyzer_id}/access-previews/{access_preview_id}/findings
{
"filters" : [ {
"criterion" : {
"eq" : [ "iam:agency" ]
},
"key" : "resource_type"
} ]
}
Example Responses
Status code: 200
OK
{
"findings" : [ {
"action" : [ "sts::setSourceIdentity", "sts::tagSession", "sts:agencies:assume" ],
"change_type" : "new",
"condition" : [ {
"key" : "g:PrincipalOrgId",
"value" : "org_id"
} ],
"created_at" : "2023-09-07T07:26:23.440Z",
"existing_finding_status" : null,
"existing_finding_id" : null,
"is_public" : false,
"id" : "{finding_id}",
"principal" : {
"identifier" : "{domain_id}",
"type" : "account"
},
"resource" : "iam::{domain_id}:agency:{agency_name}",
"resource_owner_account" : "{domain_id}",
"resource_type" : "iam:agency",
"status" : "active"
} ],
"page_info" : {
"current_count" : 1,
"next_marker" : null
}
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot