

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

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

指定された検出結果に関する情報を取得します。GetFinding と GetFindingV2 はどちらも IAM ポリシーステートメントの `Action`要素`access-analyzer:GetFinding`で を使用します。`access-analyzer:GetFinding` アクションを実行するには、 アクセス許可が必要です。

**注記**  
GetFinding は、外部アクセスアナライザーでのみサポートされています。内部アクセスアナライザーと未使用のアクセスアナライザーには GetFindingV2 を使用する必要があります。

## リクエストの構文
<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>

言語固有の AWS SDKs のいずれかでこの API を使用する方法の詳細については、以下を参照してください。
+  [AWS コマンドラインインターフェイス V2](https://docs.aws.amazon.com/goto/cli2/accessanalyzer-2019-11-01/GetFinding) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/accessanalyzer-2019-11-01/GetFinding) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/accessanalyzer-2019-11-01/GetFinding) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/accessanalyzer-2019-11-01/GetFinding) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/accessanalyzer-2019-11-01/GetFinding) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/accessanalyzer-2019-11-01/GetFinding) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/accessanalyzer-2019-11-01/GetFinding) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/accessanalyzer-2019-11-01/GetFinding) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/accessanalyzer-2019-11-01/GetFinding) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/accessanalyzer-2019-11-01/GetFinding) 