キューに含まれるすべての作業項目のリスト
Automation Anywhere は、キューの作業項目のリストを取得できる REST API を提供しています。
前提条件
- AAE_Queue Admin ロール
- Control Room でワークロード クエリと作業項目を管理するには、AAE_Queue Admin ロールを持つユーザー アカウントが必要です。
- JSON Web トークン (JWT)
- すべての Control Room API には API にアクセスするための JSON Web トークン (JWT) が必要です。認証 API を使用して認証トークンを生成します。
- URL:
https://<your_control_room_url>/v2/wlm/queues/{id}/workitems/list
- メソッド: POST
手順
-
リクエスト ヘッダーに認証トークンを追加します。
注: 認証 API を使用して JSON Web トークンを生成します。
-
次のパラメーターをリクエスト本文に指定します。
このリクエストには 2 つの入力があります。
Id
Request body:7
{ "filter": { "operator": "and", "operands": [ { "field": "id", "operator": "gt", "value": "30800" }, { "field": "id", "operator": "lt", "value": "30900" } ] }, "page": { "length": 3, "offset": 0 } }
-
リクエストを送信します。
- REST Client で [SEND] をクリックします。
- Swagger インターフェースで [実行] をクリックします。
レスポンス本文:{ "page": { "offset": 0, "total": 229, "totalFilter": 12 }, "list": [ { "id": "30888", "createdBy": "1", "createdOn": "2019-09-10T21:09:50.722Z", "updatedBy": "0", "updatedOn": "2019-09-10T21:13:46.304Z", "version": "5", "json": { "Invoice Id": "INV0004", "Customer Name": "APIName1", "Amount": 9007199254740991, "email": "API123@gmail.com", "Invoice Date": "2017-06-12T00:18:48Z" }, "result": "", "deviceId": "3", "status": "SUCCESSFUL", "startTime": "2019-09-10T21:12:16.599Z", "endTime": "2019-09-10T21:13:17.062Z", "col1": "INV0004", "col2": "APIName1", "col3": "9.007199254740991E15", "col4": "API123@gmail.com", "col5": "2017-06-12T00:18:48Z", "deviceUserId": "0", "queueId": "7", "comment": "", "automationId": "6", "totalPausedTime": "0", "error": "", "col6": "", "col7": "", "col8": "", "col9": "", "col10": "" }, { "id": "30889", "createdBy": "1", "createdOn": "2019-09-10T21:09:51.383Z", "updatedBy": "0", "updatedOn": "2019-09-10T21:13:46.255Z", "version": "5", "json": { "Invoice Id": "INV0004", "Customer Name": "APIName1", "Amount": 9007199254740991, "email": "API123@gmail.com", "Invoice Date": "2017-06-12T00:18:48Z" }, "result": "", "deviceId": "4", "status": "SUCCESSFUL", "startTime": "2019-09-10T21:12:23.841Z", "endTime": "2019-09-10T21:13:24.265Z", "col1": "INV0004", "col2": "APIName1", "col3": "9.007199254740991E15", "col4": "API123@gmail.com", "col5": "2017-06-12T00:18:48Z", "deviceUserId": "0", "queueId": "7", "comment": "", "automationId": "6", "totalPausedTime": "0", "error": "", "col6": "", "col7": "", "col8": "", "col9": "", "col10": "" }, { "id": "30890", "createdBy": "1", "createdOn": "2019-09-10T21:09:52.324Z", "updatedBy": "0", "updatedOn": "2019-09-10T21:13:46.347Z", "version": "5", "json": { "Invoice Id": "INV0004", "Customer Name": "APIName1", "Amount": 9007199254740991, "email": "API123@gmail.com", "Invoice Date": "2017-06-12T00:18:48Z" }, "result": "", "deviceId": "5", "status": "SUCCESSFUL", "startTime": "2019-09-10T21:12:29.501Z", "endTime": "2019-09-10T21:13:30.102Z", "col1": "INV0004", "col2": "APIName1", "col3": "9.007199254740991E15", "col4": "API123@gmail.com", "col5": "2017-06-12T00:18:48Z", "deviceUserId": "0", "queueId": "7", "comment": "", "automationId": "6", "totalPausedTime": "0", "error": "", "col6": "", "col7": "", "col8": "", "col9": "", "col10": "" } ] }
レスポンス ヘッダー:cache-control: no-cache, no-store, max-age=0, must-revalidate connection: keep-alive content-security-policy: default-src 'self' content-type: application/json date: Tue, 24 Sep 2019 19:40:09 GMT expires: 0 pragma: no-cache transfer-encoding: chunked x-content-type-options: nosniff x-frame-options: SAMEORIGIN x-xss-protection: 1; mode=block