

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# GetFinding
<a name="API_GetFinding"></a>

检索有关指定发现的信息。 GetFinding 和 GetFinding V2 都`access-analyzer:GetFinding`在 IAM 策略声明的`Action`元素中使用。您必须拥有执行该`access-analyzer:GetFinding`操作的权限。

**注意**  
GetFinding 仅支持外部访问分析器。您必须将 GetFinding V2 用于内部和未使用的访问分析器。

## 请求语法
<a name="API_GetFinding_RequestSyntax"></a>

```
GET /finding/id?analyzerArn=analyzerArn HTTP/1.1
```

## URI 请求参数
<a name="API_GetFinding_RequestParameters"></a>

请求使用以下 URI 参数。

 ** [analyzerArn](#API_GetFinding_RequestSyntax) **   <a name="accessanalyzer-GetFinding-request-uri-analyzerArn"></a>
生成发现结果[的分析器的 ARN](https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources)。  
模式：`[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:analyzer/.{1,255}`  
是否必需：是

 ** [id](#API_GetFinding_RequestSyntax) **   <a name="accessanalyzer-GetFinding-request-uri-id"></a>
要检索的发现的 ID。  
是否必需：是

## 请求体
<a name="API_GetFinding_RequestBody"></a>

该请求没有请求正文。

## 响应语法
<a name="API_GetFinding_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "finding": { 
      "action": [ "string" ],
      "analyzedAt": "string",
      "condition": { 
         "string" : "string" 
      },
      "createdAt": "string",
      "error": "string",
      "id": "string",
      "isPublic": boolean,
      "principal": { 
         "string" : "string" 
      },
      "resource": "string",
      "resourceControlPolicyRestriction": "string",
      "resourceOwnerAccount": "string",
      "resourceType": "string",
      "sources": [ 
         { 
            "detail": { 
               "accessPointAccount": "string",
               "accessPointArn": "string"
            },
            "type": "string"
         }
      ],
      "status": "string",
      "updatedAt": "string"
   }
}
```

## 响应元素
<a name="API_GetFinding_ResponseElements"></a>

如果此操作成功，则该服务将会发送回 HTTP 200 响应。

服务以 JSON 格式返回以下数据。

 ** [finding](#API_GetFinding_ResponseSyntax) **   <a name="accessanalyzer-GetFinding-response-finding"></a>
包含查找细节的`finding`对象。  
类型：[Finding](API_Finding.md) 对象

## 错误
<a name="API_GetFinding_Errors"></a>

有关所有操作的常见错误信息，请参阅 [常见错误类型](CommonErrors.md)。

 ** AccessDeniedException **   
您没有足够的访问权限，无法执行该操作。  
HTTP 状态代码：403

 ** InternalServerException **   
内部服务器错误。    
 ** retryAfterSeconds **   
等待重试的秒数。
HTTP 状态代码：500

 ** ResourceNotFoundException **   
找不到指定资源。    
 ** resourceId **   
资源的 ID。  
 ** resourceType **   
资源的类型。
HTTP 状态代码：404

 ** ThrottlingException **   
超过限制限制错误。    
 ** retryAfterSeconds **   
等待重试的秒数。
HTTP 状态代码：429

 ** ValidationException **   
验证异常错误。    
 ** fieldList **   
未验证的字段列表。  
 ** reason **   
异常的原因。
HTTP 状态代码：400

## 另请参阅
<a name="API_GetFinding_SeeAlso"></a>

有关以特定语言之一使用此 API 的更多信息 AWS SDKs，请参阅以下内容：
+  [AWS 命令行界面 V2](https://docs.aws.amazon.com/goto/cli2/accessanalyzer-2019-11-01/GetFinding) 
+  [AWS 适用于.NET 的 SDK V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/accessanalyzer-2019-11-01/GetFinding) 
+  [AWS 适用于 C\$1\$1 的 SDK](https://docs.aws.amazon.com/goto/SdkForCpp/accessanalyzer-2019-11-01/GetFinding) 
+  [AWS 适用于 Go v2 的 SDK](https://docs.aws.amazon.com/goto/SdkForGoV2/accessanalyzer-2019-11-01/GetFinding) 
+  [AWS 适用于 Java 的 SDK V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/accessanalyzer-2019-11-01/GetFinding) 
+  [AWS JavaScript V3 版软件开发工具包](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/accessanalyzer-2019-11-01/GetFinding) 
+  [AWS 适用于 Kotlin 的 SDK](https://docs.aws.amazon.com/goto/SdkForKotlin/accessanalyzer-2019-11-01/GetFinding) 
+  [AWS 适用于 PHP 的 SDK V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/accessanalyzer-2019-11-01/GetFinding) 
+  [AWS Python 软件开发工具包](https://docs.aws.amazon.com/goto/boto3/accessanalyzer-2019-11-01/GetFinding) 
+  [AWS 适用于 Ruby V3 的 SDK](https://docs.aws.amazon.com/goto/SdkForRubyV3/accessanalyzer-2019-11-01/GetFinding) 