Skip to main content

Get Last Job Completed

Zuora
  • 日本語のコンテンツは機械翻訳されており、補助的な参照を目的としています。機械翻訳の精度は保証できません。英語版が正となります。また、現時点では検索機能は日本語での検索をサポートしていません。翻訳に関するフィードバックについては、docs@zuora.comに送信してください。

Get Last Job Completed

Use the Retrieve the last completed aggregate query job API operation to get the details of the last completed job.

The completed AQuA jobs that were created 180 days ago are deleted permanently from Zuora, so you cannot query these jobs through API or AQuA job finder.

See the following JSON and cURL examples to learn how to use this API opration.

HTTP request:

GET https://www.zuora.com/apps/api/batch-query/jobs/partner/salesforce/
project/00170000011K3Ub

GET https://apisandbox.zuora.com/apps/api/batch-query/jobs/partner/salesforce/
project/00170000011K3Ub

JSON response:

01{
02    "batches": [
03        {
04            "full": false,
05            "name": "AccountingPeriod",
06            "message": "",
07            "query": "select Id,StartDate,EndDate,FiscalYear,Name,Status from AccountingPeriod",
08            "status": "completed",
09            "recordCount": 0,
10            "apiVersion": "60.0",
11            "fileId": "402881824835bb2a01483c1e67c7025d",
12            "batchType": "zoqlexport",
13            "batchId": "402881824835bb2a01483c1e678c025b"
14        }
15    ],
16    "project": "00170000011K3Ub",
17    "partner": "salesforce",
18    "name": "Example",
19    "id": "402881824835bb2a01483c1e678a025a",
20    "version": "1.1",
21    "format": "CSV",
22    "startTime": "2014-09-03 08:24:58",
23    "status": "completed",
24    "encrypted": "none"
25}

cURL Example

cURL request:

1echo
2echo "============= Project and Partner last processed job details ==========="
3echo curl -i -k -u $USER_NAME:$PASSWORD -H "Accept:application/json" -X GET $BASE_URL/api/batch-query/jobs/partner/$PARTNER/project/$PROJECT

cURL response:

01HTTP/1.1 200 OK
02Server: Apache-Coyote/1.1
03Content-Type: application/json
04Transfer-Encoding: chunked
05Date: Fri, 05 Sep 2014 11:45:36 GMT
06{
07"batches" : [ {
08  "full" : true,
09  "name" : "AccountingPeriod",
10  "query" : "select Id,StartDate,EndDate,FiscalYear,Name,Status from AccountingPeriod",
11  "status" : "completed",
12  "recordCount" : 1,
13  "apiVersion" : "60.0",
14  "batchType" : "zoqlexport",
15  "batchId" : "402881824835bb2a01484577116e035e",
16  "segments" : [ "402881824835bb2a0148457711ae0361" ]
17} ],
18"project" : "00170000011K3Ub",
19"partner" : "salesforce",
20"name" : "Example",
21"id" : "402881824835bb2a01484577116c035d",
22"version" : "1.1",
23"format" : "CSV",
24"startTime" : "2014-09-05 03:58:24",
25"status" : "completed",
26"encrypted" : "none"
27}
English
日本語