Spectra Logic
1-800-833-1132 : 1-303-449-6400


Spectra S3 Bucket, Object, and Job Operations : Job Operations : Get Completed Jobs

Get Completed Jobs
Description
Get a list of all completed jobs. Use parameters to return a subset of the jobs.
Requests
Syntax
GET http[s]://{datapathDNSname}/_rest_/completed_job[?bucket_id={string}][&chunk_client_processing_order_guarantee=NONE|IN_ORDER][&last_page][&name={string}][&page_length={32‑bit integer}][&page_offset={32‑bit integer}][&page_start_marker={string}][&priority=CRITICAL|URGENT|HIGH|NORMAL|LOW|BACKGROUND][&rechunked={date}][&request_type=PUT|GET|VERIFY][&truncated=TRUE|FALSE][&user_id={string}]
Request Parameters
Specifies whether the job chunks must be processed in order. Setting a value of NONE will achieve maximum performance, but requires the client to get chunks as they become available, even if they become available out of order.
Values: IN_ORDER, NONE
Default: Configured in the data policy for the bucket.
Notes:  
§
Specifying both page_offset and page_start_marker causes an error.
§
If neither page_offset, nor page_start_marker are specified, the page_offset default is used.
a.
Responses
Response Elements
<Data>
   <CompletedJob>
      <BucketId>{
string}</BucketId>
      <CachedSizeInBytes>{64‑bit integer}</CachedSizeInBytes>
      <ChunkClientProcessingOrderGuarantee>
         IN_ORDER|NONE
      </ChunkClientProcessingOrderGuarantee>
      <CompletedSizeInBytes>
         {64‑bit integer}
      </CompletedSizeInBytes>
      <CreatedAt>{YYYY-MM-DDThh:mm:ss.xxxZ}</CreatedAt>
      <DateCompleted>{YYYY-MM-DDThh:mm:ss.xxxZ}</DateCanceled>
      <ErrorMessage>{string}</ErrorMessage>
      <Id>{string}</Id>
      <Naked>TRUE|FALSE</Naked>
      <Name>{string}</Name>
      <OriginalSizeInBytes>{64‑bit integer}</OriginalSizeInBytes>
      <Priority>
         CRITICAL|URGENT|HIGH|NORMAL|LOW|BACKGROUND
      </Priority>
      <Rechunked>{YYYY-MM-DDThh:mm:ss.xxxZ}</Rechunked>
      <RequestType>GET|PUT|VERIFY</RequestType>
      <Truncated>TRUE|FALSE</Truncated>
      <UserId>{string}</UserId>
   </CompletedJob>
</Data>
where the response elements are defined as follows:
The amount of data that has been transferred to the cache for this job. For RequestType=PUT, this is the amount of data successfully transferred to the BlackPearl Converged Storage System from the client. For RequestType=GET, this the amount of data either in cache originally, or loaded into cache from the permanent data store. For RequestType=VERIFY, this the amount of data loaded into cache from the permanent data store.
The amount of data that is completely processed for this job. For RequestType=PUT, this indicates the amount of data written to all permanent data stores. For RequestType=GET, this indicates the amount of data that has been read successfully by the client. For RequestType=VERIFY, this indicates the amount of data for which the CRC has been verified.
Whether the job was created as the result of a native S3 command (TRUE) or a Create Bulk GET/PUT/VERIFY job command (FALSE). Values: TRUE, FALSE
Example
Sample Request
This request gets a list of all completed jobs on the BlackPearl Converged Storage System.
GET http://blackpearl-hostname/_rest_/completed_job/ HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<Data>
   <CompletedJob>
      <BucketId>12c10166-979f-4477-ad3a-e1b514257886</BucketId>
      <CachedSizeInBytes>0</CachedSizeInBytes>
      <ChunkClientProcessingOrderGuarantee>
         IN_ORDER
      </ChunkClientProcessingOrderGuarantee>
      <CompletedSizeInBytes>0</CompletedSizeInBytes>
      <CreatedAt>2015-11-24T02:00:17.000Z</CreatedAt>
      <DateCompleted>2015-11-24T02:00:17.000Z</DateCompleted>
      <ErrorMessage/>
      <Id>721bcf0b-75b4-4830-ac3b-135819832f55</Id>
      <Naked>FALSE</Naked>
      <Name>Untitled</Name>
      <OriginalSizeInBytes>0</OriginalSizeInBytes>
      <Priority>URGENT</Priority>
      <Rechunked/>
      <RequestType>PUT</RequestType>
      <Truncated>FALSE</Truncated>
      <UserId>800b9b7b-8a56-4657-85b3-ec225139e133</UserId>
   </CompletedJob>
</Data>