時間範囲内のすべてのジョブ実行の取得
get
/iam/governance/selfservice/api/v1/scheduler/history/
指定した時間範囲内のすべての実行履歴のページ区切りリストを取得します。
リクエスト
問合せパラメータ
- endDate: string(date-time)
yyyy-MM-dd'T'HH:mm:ss'Z'書式の時間範囲の終了
- limit: integer
返されるアイテムの数。
- offset: string
結果セットの収集開始前にスキップするアイテムの数。
- orderBy: string
ソート・フィールドとソート順序の書式は「field:order」です。「field」の使用可能な値は、*startTime*、*endTime*および*status*です。「order」の使用可能な値は*desc*および*asc*です。
- startDate: string(date-time)
yyyy-MM-dd'T'HH:mm:ss'Z'書式の時間範囲の開始
- status: integer
ジョブ実行のステータスでフィルタ処理します。
レスポンス
サポートされているメディア・タイプ
- application/json
200レスポンス
OK
ネストされたスキーマ: History
型:
ソースを表示
object
- customStatus(optional): string
- errorMessage(optional): string
- exceptionObject(optional): string
- id(optional): integer(int32)
- jobEndTime(optional): string(date-time)
書式: yyyy-MM-dd'T'HH:mm:ss'Z'
- jobName(optional): string
- jobStartTime(optional): string(date-time)
書式: yyyy-MM-dd'T'HH:mm:ss'Z'
- params(optional): array params
- status(optional): string
指定可能な値:
[ "STOPPED", "RUNNING", "INTERRUPTED", "FAILED" ]
400レスポンス
入力が無効です
例
次の例は、cURLを使用してGETリクエストを発行することで、指定した時間範囲内のすべての実行履歴のページ区切りリストを取得する方法を示しています。ここに示す情報は、擬似システムを使用した場合のものであり、プロトタイプとして提供しています。
ソート・フィールドとソート順序の書式は「フィールド: 順序」です。フィールドの使用可能な値は、startTime、endTimeおよびstatusです。順序の使用可能な値は、descおよびascです。
cURLの例
curl -i -X GET -u username:password \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ 'http://pseudo.com/iam/governance/selfservice/api/v1/scheduler/history?limit=10&offset=0'
レスポンス本文の例
次の例は、指定した時間範囲内のすべての実行履歴のページ区切りリストを取得するリクエストに対するJSONレスポンスを示しています:
{"links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/scheduler/jobs/Catalog%20Synchronization%20Job/history" }, { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/scheduler/jobs/Catalog%20Synchronization%20Job/history?offset=0&limit=10" }, { "rel": "first", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/scheduler/jobs/Catalog%20Synchronization%20Job/history?offset=1&limit=10" }, { "rel": "prev", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/scheduler/jobs/Catalog%20Synchronization%20Job/history?offset=1&limit=10" }, { "rel": "next", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/scheduler/jobs/Catalog%20Synchronization%20Job/history?offset=10&limit=10" } ], "count": 10, "hasMore": true, "totalResult": 240, "histories": [ { "id": 19994, "jobName": "Catalog Synchronization Job", "infotype": "S", "jobStartTime": "2022-08-22T11:43:51Z", "jobEndTime": "2022-08-22T11:43:51Z", "status": "STOPPED", "params": { "Process Entitlements": "true", "Mode": "Incremental", "Update Date": "", "Process Roles": "false", "Process Application Instances": "true", "File Path": "", "Updated Date": "08/22/2022 11:28:51" } }, { "id": 19986, "jobName": "Catalog Synchronization Job", "infotype": "S", "jobStartTime": "2022-08-22T11:28:51Z", "jobEndTime": "2022-08-22T11:28:51Z", "status": "STOPPED", "params": { "Process Entitlements": "true", "Mode": "Incremental", "Update Date": "", "Process Roles": "false", "Process Application Instances": "true", "File Path": "", "Updated Date": "08/22/2022 11:13:51" } }, { "id": 19972, "jobName": "Catalog Synchronization Job", "infotype": "S", "jobStartTime": "2022-08-22T11:13:51Z", "jobEndTime": "2022-08-22T11:13:51Z", "status": "STOPPED", "params": { "Process Entitlements": "true", "Mode": "Incremental", "Update Date": "", "Process Roles": "false", "Process Application Instances": "true", "File Path": "", "Updated Date": "08/22/2022 10:58:51" } }, { "id": 19965, "jobName": "Catalog Synchronization Job", "infotype": "S", "jobStartTime": "2022-08-22T10:58:51Z", "jobEndTime": "2022-08-22T10:58:51Z", "status": "STOPPED", "params": { "Process Entitlements": "true", "Mode": "Incremental", "Update Date": "", "Process Roles": "false", "Process Application Instances": "true", "File Path": "", "Updated Date": "08/22/2022 10:43:51" } }, { "id": 19953, "jobName": "Catalog Synchronization Job", "infotype": "S", "jobStartTime": "2022-08-22T10:43:51Z", "jobEndTime": "2022-08-22T10:43:51Z", "status": "STOPPED", "params": { "Process Entitlements": "true", "Mode": "Incremental", "Update Date": "", "Process Roles": "false", "Process Application Instances": "true", "File Path": "", "Updated Date": "08/22/2022 10:28:51" } }, { "id": 19945, "jobName": "Catalog Synchronization Job", "infotype": "S", "jobStartTime": "2022-08-22T10:28:51Z", "jobEndTime": "2022-08-22T10:28:51Z", "status": "STOPPED", "params": { "Process Entitlements": "true", "Mode": "Incremental", "Update Date": "", "Process Roles": "false", "Process Application Instances": "true", "File Path": "", "Updated Date": "08/22/2022 10:13:51" } }, { "id": 19931, "jobName": "Catalog Synchronization Job", "infotype": "S", "jobStartTime": "2022-08-22T10:13:51Z", "jobEndTime": "2022-08-22T10:13:51Z", "status": "STOPPED", "params": { "Process Entitlements": "true", "Mode": "Incremental", "Update Date": "", "Process Roles": "false", "Process Application Instances": "true", "File Path": "", "Updated Date": "08/22/2022 09:58:51" } }, { "id": 19924, "jobName": "Catalog Synchronization Job", "infotype": "S", "jobStartTime": "2022-08-22T09:58:51Z", "jobEndTime": "2022-08-22T09:58:51Z", "status": "STOPPED", "params": { "Process Entitlements": "true", "Mode": "Incremental", "Update Date": "", "Process Roles": "false", "Process Application Instances": "true", "File Path": "", "Updated Date": "08/22/2022 09:43:51" } }, { "id": 19912, "jobName": "Catalog Synchronization Job", "infotype": "S", "jobStartTime": "2022-08-22T09:43:51Z", "jobEndTime": "2022-08-22T09:43:51Z", "status": "STOPPED", "params": { "Process Entitlements": "true", "Mode": "Incremental", "Update Date": "", "Process Roles": "false", "Process Application Instances": "true", "File Path": "", "Updated Date": "08/22/2022 09:28:51" } }, { "id": 19904, "jobName": "Catalog Synchronization Job", "infotype": "S", "jobStartTime": "2022-08-22T09:28:51Z", "jobEndTime": "2022-08-22T09:28:51Z", "status": "STOPPED", "params": { "Process Entitlements": "true", "Mode": "Incremental", "Update Date": "", "Process Roles": "false", "Process Application Instances": "true", "File Path": "", "Updated Date": "08/22/2022 09:13:51" } } ], "offset": 0, "limit": 10 }