フォルダーまたはアセットの後処理ステータスを追跡するAPI
次に、アセットのステータスを取得するために非同期ジョブを開始するPOST メソッドを示します。
ガイドでのアセットのステータスの検索
リクエスト URL
http://<aem-guides-server>:<port-number>bin/guides/v1/assets/status
パラメーター
名前
種類
必須
説明
path文字列
はい
ステータスの取得が必要なフォルダーまたはアセットパス。
excludedPaths文字列
いいえ
上記リストから除外するフォルダーパス。
{
"paths": [
"/content/dam/status-fetch1",
"/content/dam/status-fetch2"
],
"excludedPaths": [
"content/dam/status-fetch1/excluded-folder"
]
}
応答値
非同期ジョブのステータスを取得するためにポーリングするjobId。
{
"jobId": "akjhdfalkj1132",
"status": "WAITING",
}
Poller API
上記のAPIによって実行される非同期ジョブのステータスを取得するGET メソッド。
リクエスト URL
http://<aem-guides-server>:<port-number>bin/guides/v1/assets/status
パラメーター
名前
種類
必須
説明
jobId文字列
はい
上記のAPIによって返されたジョブ ID。
応答値
アセットとそのステータスのリスト。
{
"jobId": " akjhdfalkj1132",
"status": "SUCCESS",
"assets": [
{
"path": "/content/dam/status-fetch1/a.dita",
"uuid": "GUID-1293914ansd",
"status": "SUCCESS",
"exists": true
},
{
"path": "/content/dam/status-fetch1/b.dita",
"uuid": "GUID-1883241",
"status": "FAILURE",
"exists": true
}
]
}
ステータス値:成功、失敗、処理中、保留中
recommendation-more-help
experience-manager-guides-help-product-guide