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


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

Get Canceled Jobs
Description
Get a list of all canceled jobs. Use parameters to return a subset of the jobs.
Requests
Syntax
GET http[s]://{datapathDNSname}/_rest_/canceled_job[?bucket_id={string}][&canceled_due_to_timeout=TRUE|FALSE][&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>
   <CanceledJob>
      <BucketId>{
string}</BucketId>
      <CachedSizeInBytes>{64‑bit integer}</CachedSizeInBytes>
       <CanceledDueToTimeout>TRUE|FALSE</CanceledDueToTimeout>
      <ChunkClientProcessingOrderGuarantee>
         IN_ORDER|NONE
      </ChunkClientProcessingOrderGuarantee>
      <CompletedSizeInBytes>
         {64‑bit integer}
      </CompletedSizeInBytes>
      <CreatedAt>{YYYY-MM-DDThh:mm:ss.xxxZ}</CreatedAt>
      <DateCanceled>{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>
   </CanceledJob>
</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 for all canceled jobs on the BlackPearl Converged Storage System.
GET http://blackpearl-hostname/_rest_/canceled_job/ HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<Data>
   <CanceledJob>
      <BucketId>e800c074-5bb4-4a5d-a404-f431ed2f1f29</BucketId>
      <CachedSizeInBytes>0</CachedSizeInBytes>
      <CanceledDueToTimeout>FALSE</CanceledDueToTimeout>
      <ChunkClientProcessingOrderGuarantee>
         IN_ORDER
      </ChunkClientProcessingOrderGuarantee>
      <CompletedSizeInBytes>0</CompletedSizeInBytes>
      <CreatedAt>2015-11-24T02:00:17.000Z</CreatedAt>
      <DateCanceled>2015-11-24T02:00:17.000Z</DateCanceled>
      <Id>13ffa24b-515d-43f8-94bd-4d928fb96c21</Id>
      <Naked>FALSE</Naked>
      <Name>Untitled</Name>
      <OriginalSizeInBytes>0</OriginalSizeInBytes>
      <Priority>URGENT</Priority>
      <Rechunked/>
      <RequestType>GET</RequestType>
      <Truncated>FALSE</Truncated>
      <UserId>fe0d943b-224d-48a2-b2d8-59bf5c738665</UserId>
   </CanceledJob>
</Data>