

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

# Neptune Loader Get-Status の例
<a name="load-api-reference-status-examples"></a>

 次の例は、Neptune ローダーの GET-Status API の使用方法を示しています。これにより、Amazon Neptune グラフデータベースへのデータロードのステータスに関する情報を取得できます。これらの例は、特定のロードのステータスの取得、使用可能なロード ID、特定のロードの詳細なステータス情報のリクエストという 3 つの主なシナリオを対象としています。

## ロードステータスのリクエスト例
<a name="load-api-reference-status-examples-status-request"></a>

以下は、`curl` コマンドを使用して HTTP `GET` 経由で送信されるリクエストです。

```
curl -X GET 'https://your-neptune-endpoint:port/loader/loadId (a UUID)'
```

**Example 応答**  

```
{
    "status" : "200 OK",
    "payload" : {
        "feedCount" : [
            {
                "LOAD_FAILED" : 1
            }
        ],
        "overallStatus" : {
            "datatypeMismatchErrors" : 0,
            "fullUri" : "s3://bucket/key",
            "insertErrors" : 0,
            "parsingErrors" : 5,
            "retryNumber" : 0,
            "runNumber" : 1,
            "status" : "LOAD_FAILED",
            "totalDuplicates" : 0,
            "totalRecords" : 5,
            "totalTimeSpent" : 3.0
        }
    }
}
```

## loadId のリクエストの例
<a name="load-api-reference-status-examples-loadId-request"></a>

以下は、`curl` コマンドを使用して HTTP `GET` 経由で送信されるリクエストです。

```
curl -X GET 'https://your-neptune-endpoint:port/loader?limit=3'
```

**Example 応答**  

```
{
    "status" : "200 OK",
    "payload" : {
         "loadIds" : [
            "a2c0ce44-a44b-4517-8cd4-1dc144a8e5b5",
            "09683a01-6f37-4774-bb1b-5620d87f1931",
            "58085eb8-ceb4-4029-a3dc-3840969826b9"
        ]
    }
}
```

## 詳細なステータスのリクエストの例
<a name="load-api-reference-status-examples-details-request"></a>

以下は、`curl` コマンドを使用して HTTP `GET` 経由で送信されるリクエストです。

```
curl -X GET 'https://your-neptune-endpoint:port/loader/loadId (a UUID)?details=true'
```

**Example 応答**  

```
{
    "status" : "200 OK",
    "payload" : {
        "failedFeeds" : [
            {
                "datatypeMismatchErrors" : 0,
                "fullUri" : "s3://bucket/key",
                "insertErrors" : 0,
                "parsingErrors" : 5,
                "retryNumber" : 0,
                "runNumber" : 1,
                "status" : "LOAD_FAILED",
                "totalDuplicates" : 0,
                "totalRecords" : 5,
                "totalTimeSpent" : 3.0
            }
        ],
        "feedCount" : [
            {
                "LOAD_FAILED" : 1
            }
        ],
        "overallStatus" : {
            "datatypeMismatchErrors" : 0,
            "fullUri" : "s3://bucket/key",
            "insertErrors" : 0,
            "parsingErrors" : 5,
            "retryNumber" : 0,
            "runNumber" : 1,
            "status" : "LOAD_FAILED",
            "totalDuplicates" : 0,
            "totalRecords" : 5,
            "totalTimeSpent" : 3.0
        }
    }
}
```