フィルターを使用して選択した WLM キューを取り出す
- 最終更新日2020/04/15
Control Room のためにフィルター付きの POST リクエストを送信し、特定のワークロード管理 (WLM) キューを取り出します。
前提条件
- AAE_Queue Admin ロール
- Control Room でワークロード クエリと作業項目を管理するには、AAE_Queue Admin ロールを持つユーザー アカウントが必要です。
- JSON Web トークン (JWT)
- すべての Control Room API には API にアクセスするための JSON Web トークン (JWT) が必要です。認証 API を使用して認証トークンを生成します。
-
URL:
http://<your_control_room_url>/v2/wlm/queues/list
括弧内のコンテンツを Control Room の情報に置き換えます。
- メソッド: POST
手順
この応答の例では、フィルター要件に合致した 1 つのキューのみが返されてきました。
レスポンス本文
{
"page": {
"offset": 0,
"total": 3,
"totalFilter": 1
},
"list": [
{
"id": "7",
"name": "q3",
"status": "IN_USE",
"description": "",
"reactivationThreshold": "1",
"manualProcessingTime": "1",
"manualProcessingTimeUnit": "DAYS",
"workItemModelId": "3",
"considerReactivationThreshold": false,
"createdBy": "25",
"createdOn": "2019-09-10T21:04:26.760Z",
"updatedBy": "0",
"updatedOn": "2019-09-10T23:31:46.995Z",
"tenantId": "1",
"version": "24"
}
]
}
レスポンス ヘッダー
cache-control: no-cache, no-store, max-age=0, must-revalidate
connection: keep-alive
content-length: 527
content-security-policy: default-src 'self'
content-type: application/json
date: Mon, 23 Sep 2019 17:50:15 GMT
expires: 0
pragma: no-cache
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
これは、同じ REST リクエストの Curl 例です。例は読みやすいようにフォーマットされています。
curl -X POST "http://<your_control_room_url>/v2/wlm/queues/list"
-H "accept: application/json" -H "X-Authorization: <authentication_token>"
-H "Content-Type: application/json" -d "{ \"filter\": { \"operator\": \"gt\",
\"operands\": [ ], \"field\": \"id\", \"value\": \"6\" }, \"sort\": [ { \"field\": \"id\",
\"direction\": \"asc\" } ], \"page\": { \"offset\": 0, \"length\": 100 }}"