Retrieving Information About the Specified Finding
Function
This API is used to retrieve information about the specified finding.
Authorization Information
Each account root user 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:getFinding | Read | analyzer * | g:ResourceTag/<tag-key> | - | - |
URI
GET /v5/analyzers/{analyzer_id}/findings/{finding_id}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| analyzer_id | Yes | String | Definition: Unique identifier of an analyzer. You can call the ListAnalyzers API to obtain the analyzer ID. The response parameters of this API return an analyzer list. The id field of each analyzer object is the analyzer ID. Range: 1 to 36 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. |
| finding_id | Yes | String | Definition: Unique identifier of a finding. You can call the ListFindings API to retrieve the analysis finding list generated by a specified analyzer. The response of this API contains an analysis result list. Each analysis result object in the list contains a unique id field, which is the analysis result ID. Range: 1 to 36 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. |
Request Parameters
None
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| finding | Finding object | Definition: Findings. Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| action | Array of strings | Definition: Action that can be used by external principals. Range: N/A |
| analyzed_at | String | Definition: Time when resources were analyzed. The UTC+0 time zone is used. The format is yyyy-MM-ddTHH:mm:ss.SSSZ, for example, 2023-09-07T07:51:10.502Z. Range: N/A |
| condition | Array of FindingCondition objects | Definition: Condition that generates findings in the policy statement. Range: N/A |
| created_at | String | Definition: Time when the findings were generated. The UTC+0 time zone is used. The format is yyyy-MM-ddTHH:mm:ss.SSSZ, for example, 2023-09-07T07:51:10.502Z. Range: N/A |
| finding_details | Array of FindingDetails objects | Definition: Finding details. Range: N/A |
| finding_type | String | Definition: Finding type. Range:
|
| id | String | Definition: Unique identifier of a finding. Range: 1 to 36 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. |
| is_public | Boolean | Definition: Whether the policy that generates findings allows public access to resources. Range: N/A |
| principal | FindingPrincipal object | Definition: External principal that accesses resources in the trusted zone. Range: N/A |
| resource | String | Definition: Unique identifier of a resource. Range: N/A |
| resource_id | String | Definition: Unique identifier of a resource. Range: 1 to 36 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. |
| resource_owner_account | String | Definition: ID of the account that owns resources. Range: 1 to 36 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. |
| resource_project_id | String | Definition: Project ID of a resource. Range: A maximum of 36 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. |
| resource_type | String | Definition: Type of a resource. Range: |
| sources | Array of strings | Definition: Source of findings, indicating how to grant access that generates the findings. Range: |
| status | String | Definition: Finding status. Range: |
| updated_at | String | Definition: Time when the findings were updated. The UTC+0 time zone is used. The format is yyyy-MM-ddTHH:mm:ss.SSSZ, for example, 2023-09-07T07:51:10.502Z. Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| external_access_details | ExternalAccessDetails object | Definition: External access findings. Range: N/A |
| privilege_escalation_details | PrivilegeEscalationDetails object | Definition: Finding details for privilege escalation access. Range: N/A |
| unused_iam_user_access_key_details | Definition: Finding details for unused keys. Range: N/A | |
| unused_iam_user_password_details | UnusedIamUserPasswordDetails object | Definition: Finding details for unused user passwords. Range: N/A |
| unused_permission_details | UnusedPermissionDetails object | Definition: Finding details for unused permissions. Range: N/A |
| unused_iam_agency_details | UnusedIamAgencyDetails object | Definition: Finding details for unused agencies. Range: N/A |
| iam_bp_root_user_has_access_key_details | Definition: Finding details for root users who have access keys. Range: N/A | |
| iam_bp_access_api_with_password_details | Definition: Finding details for API access with passwords. Range: N/A | |
| iam_bp_login_protection_disabled_details | Definition: Finding details for disabled login protection. Range: N/A | |
| iam_bp_mfa_unconfigured_details | IamBpMfaUnconfiguredDetails object | Definition: Finding details for unbound MFA. Range: N/A |
| iam_bp_assign_high_risk_sys_policy_or_role_to_user_details | Definition: Finding details for attaching high-risk system permissions or roles to IAM users. Range: N/A | |
| iam_bp_attach_high_risk_sys_identity_policy_to_user_details | Definition: Finding details for attaching high-risk system identity policies to IAM users. Range: N/A | |
| iam_bp_assign_high_risk_sys_policy_or_role_to_agency_details | Definition: Finding details for attaching high-risk system policies or roles to IAM agencies. Range: N/A | |
| iam_bp_attach_high_risk_sys_identity_policy_to_agency_details | Definition: Finding details for attaching high-risk system identity policies to IAM agencies. Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| action | Array of strings | Definition: Action that can be used by external principals. Range: N/A |
| condition | Array of FindingCondition objects | Definition: Condition that generates findings in the policy statement. Range: N/A |
| is_public | Boolean | Definition: Whether the policy that generates findings allows public access to resources. Range: N/A |
| principal | FindingPrincipal object | Definition: External principal that accesses resources in the trusted zone. Range: N/A |
| sources | Array of strings | Definition: Source of findings, indicating how to grant access that generates the findings. Range: |
| Parameter | Type | Description |
|---|---|---|
| key | String | Definition: Identifier or name of the condition key. Range: N/A |
| value | String | Definition: Value of the condition key. Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| actions | Array of strings | Definition: Specified set of operations to be analyzed. Range: N/A |
| resource | String | Definition: Unique identifier of a resource. Range: N/A |
| principal | FindingPrincipal object | Definition: External principal that accesses resources in the trusted zone. Range: N/A |
| active_action | String | Definition: Operations that can be triggered through privilege escalation access paths. Range: N/A |
| path | Array of PrivilegeEscalationStep objects | Definition: Step of the privilege escalation access path. Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| principal | FindingPrincipal object | Definition: External principal that accesses resources in the trusted zone. Range: N/A |
| resources | Array of strings | Definition: Resources involved in this step. Range: N/A |
| action | String | Definition: Operations involved in this step. Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| access_key_id | String | Definition: Unique ID of a user access key. Range: N/A |
| last_accessed | String | Definition: Last access time of a user access key. The UTC+0 time zone is used. The format is yyyy-MM-ddTHH:mm:ss.SSSZ, for example, 2023-09-07T07:51:10.502Z. Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| last_accessed | String | Definition: Last access time of a user password. The UTC+0 time zone is used. The format is yyyy-MM-ddTHH:mm:ss.SSSZ, for example, 2023-09-07T07:51:10.502Z. Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| service | String | Definition: Name of the cloud service that the permission belongs to. Range: N/A |
| last_accessed | String | Definition: Last access time of the cloud service. The UTC+0 time zone is used. The format is yyyy-MM-ddTHH:mm:ss.SSSZ, for example, 2023-09-07T07:51:10.502Z. Range: N/A |
| actions | Array of UnusedAction objects | Definition: Unused actions. Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| action | String | Definition: Authorization item name. Range: N/A |
| last_accessed | String | Definition: Last access time of the authorization item. The UTC+0 time zone is used. The format is yyyy-MM-ddTHH:mm:ss.SSSZ, for example, 2023-09-07T07:51:10.502Z. Range: N/A |
| role_sources | Array of strings | Definition: List of role sources accessed through this operation. Range: A maximum of 3 items are supported. |
| identity_policy_sources | Array of strings | Definition: List of identity policy sources accessed through this operation. Range: A maximum of 3 items are supported. |
| Parameter | Type | Description |
|---|---|---|
| last_accessed | String | Definition: Last access time of the agency. The UTC+0 time zone is used. The format is yyyy-MM-ddTHH:mm:ss.SSSZ, for example, 2023-09-07T07:51:10.502Z. Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| access_key_id | String | Definition: Unique ID of a user access key. Range: 1 to 40 characters. |
| last_accessed | String | Definition: Last access time of a user access key. The UTC+0 time zone is used. The format is yyyy-MM-ddTHH:mm:ss.SSSZ, for example, 2023-09-07T07:51:10.502Z. Range: N/A |
| created_at | String | Definition: Time when a user access key was created. The UTC+0 time zone is used. The format is yyyy-MM-ddTHH:mm:ss.SSSZ, for example, 2023-09-07T07:51:10.502Z. Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| user_id | String | Definition: Unique ID of the user. Only letters, digits, underscores (_), and hyphens (-) are allowed. Range: 1 to 36 characters. |
| last_access_api_with_pwd_at | String | Definition: Last time when a user accessed APIs with a password. The UTC+0 time zone is used. The format is yyyy-MM-ddTHH:mm:ss.SSSZ, for example, 2023-09-07T07:51:10.502Z. Range: N/A |
| user_created_at | String | Definition: Time when the user was created. The UTC+0 time zone is used. The format is yyyy-MM-ddTHH:mm:ss.SSSZ, for example, 2023-09-07T07:51:10.502Z. Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| user_id | String | Definition: Unique ID of the user. Only letters, digits, underscores (_), and hyphens (-) are allowed. Range: 1 to 36 characters. |
| user_created_at | String | Definition: Time when the user was created. The UTC+0 time zone is used. The format is yyyy-MM-ddTHH:mm:ss.SSSZ, for example, 2023-09-07T07:51:10.502Z. Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| user_id | String | Definition: Unique ID of the user. Only letters, digits, underscores (_), and hyphens (-) are allowed. Range: 1 to 36 characters. |
| user_created_at | String | Definition: Time when the user was created. The UTC+0 time zone is used. The format is yyyy-MM-ddTHH:mm:ss.SSSZ, for example, 2023-09-07T07:51:10.502Z. Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| user_id | String | Definition: Unique ID of the user. Only letters, digits, underscores (_), and hyphens (-) are allowed. Range: 1 to 36 characters. |
| permission_name | String | Definition: Permission name. Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| user_id | String | Definition: Unique ID of the user. Only letters, digits, underscores (_), and hyphens (-) are allowed. Range: 1 to 36 characters. |
| policy_name | String | Definition: Policy name. Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| agency_id | String | Definition: Unique ID of the agency. Only letters, digits, underscores (_), and hyphens (-) are allowed. Range: 1 to 36 characters. |
| permission_name | String | Definition: Permission name. Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| agency_id | String | Definition: Unique ID of the agency. Only letters, digits, underscores (_), and hyphens (-) are allowed. Range: 1 to 36 characters. |
| policy_name | String | Definition: Policy name. Range: N/A |
Example Requests
Retrieving information about the specified finding
GET https://{hostname}/v5/analyzers/{analyzer_id}/findings/{finding_id} Example Responses
Status code: 200
OK
{
"finding" : {
"action" : [ "obs:bucket:listBucket" ],
"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" : "obs:{region_id}::bucket:{bucket_name}",
"resource_owner_account" : "{domain_id}",
"resource_type" : "obs:bucket",
"sources" : [ "bucket_policy" ],
"status" : "active",
"updated_at" : "2023-09-07T08:04:41.698Z"
}
} 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