---
title: "インクリメンタルアップデートの状況を把握してください"
slug: "get-the-status-of-an-incremental-update"
abstract: "インデックスドキュメントを段階的に追加、編集、削除するリクエストのステータスを取得するために、Sitecore SearchのインジェスションAPIを使う方法。"
---
# インクリメンタルアップデートの状況を把握してください

インジェスションAPIを通じて作成されたインデックスドキュメント[の作成、](https://doc.sitecore.com/search/ja/developers/search-developer-guide/using-the-ingestion-api-to-add-content-to-an-index/create-an-index-document/creating-a-document-by-passing-attribute-values.html "Creating a document by passing attribute values")[編集](https://doc.sitecore.com/search/ja/developers/search-developer-guide/using-the-ingestion-api-to-add-content-to-an-index/updating-a-document.html "Updating a document")、[削除](https://doc.sitecore.com/search/ja/developers/search-developer-guide/using-the-ingestion-api-to-add-content-to-an-index/deleting-a-document.html "Deleting a document")リクエストのステータスを取得できます。これを行うには、{base-URL}/ingestion/v1/domains/{domain}/sources/{source}/entities/{entity}/status/{incrementalUpdateId}にGETコールを行ってください。1つのリクエストで1つのインデックスドキュメントの状態を確認できます。

詳細なデータモデルを見るには [、swagger参照](https://doc.sitecore.com/search/en/developers/ingestion-api/index.html) をViewしてください。

> !注作成、編集、削除のリクエストに対する返信からincrementalUpdateIdの値を取り込みAPI取得してください。

こちらは、作成したインデックスドキュメントの状態を確認するためのサンプルcURLです:

curl --location '{base-URL}/ingestion/v1/domains/{domain}/sources/{source}/entities/{entity}/status/2529ecba-efce-1726-3021-7d6911a962ac' \\
--header 'Content-Type: application/json' \\
--header 'Authorization: <API\_KEY>'

以下はインデックス文書が成功裏に作成された際のサンプル回答です:

{"status":"finished"}

インデックス文書が作成されなかった場合のサンプル回答は以下の通りです:

{"status":"failed"}

## 段階的更新の状態

インデックス文書 [の追加](https://doc.sitecore.com/search/ja/developers/search-developer-guide/using-the-ingestion-api-to-add-content-to-an-index/create-an-index-document/creating-a-document-by-passing-attribute-values.html "Creating a document by passing attribute values")、[編集](https://doc.sitecore.com/search/ja/developers/search-developer-guide/using-the-ingestion-api-to-add-content-to-an-index/updating-a-document.html "Updating a document")、[削除](https://doc.sitecore.com/search/ja/developers/search-developer-guide/using-the-ingestion-api-to-add-content-to-an-index/deleting-a-document.html "Deleting a document") を依頼する際、それは以下のいずれかの状態である可能性があります:

-   *失敗* - リクエストが失敗し、インデックス文書が作成され、更新され、削除されていません。リクエストを再度やり直してください。
-   *実行中* - リクエストは継続中です。しばらくしてからステータスを確認してください。
-   *完了* - リクエストは成功しました。インデックス文書が作成され、更新された、または削除されました。