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


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

Get Active Jobs
Description
Get a list of all jobs currently active. Use parameters to return a subset of the jobs.
Requests
Syntax
GET http[s]://{datapathDNSname}/_rest_/active_job[?aggregating=TRUE|FALSE][&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
Whether the job can have additional work appended to it. Jobs can aggregate if they are created with the aggregating request parameter set to TRUE (Naked=FALSE) or if they are created by the BlackPearl system in response to Amazon S3 PUT and GET requests (Naked=TRUE). Values: TRUE, FALSE
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>
   <Job>
      <Aggregating>TRUE|FALSE</Aggregating>
      <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>
      <ErrorMessage>{string}</ErrorMessage>
      <Id>{string}</Id>
      <ImplicitJobIdResolution>
         TRUE|FALSE
      </ImplicitJobIdResolution>
      <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>
   </Job>
</Data>
where the response elements are defined as follows:
Whether the job can have additional PUTs or GETs appended to it. Jobs aggregate if created with the aggregating request parameter set to TRUE, or if created by the BlackPearl system in response to Amazon S3 PUT and GET requests. Values: TRUE, FALSE
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.
Values: TRUE, FALSE
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 currently active jobs on the BlackPearl Converged Storage System.
GET http://blackpearl-hostname/_rest_/active_job/ HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<Data>
   <Job>
      <Aggregating>FALSE</Aggregating>
      <BucketId>2e41abd0-e681-4f5f-af2c-724c7b7d60f3</BucketId>
      <CachedSizeInBytes>0</CachedSizeInBytes>
      <ChunkClientProcessingOrderGuarantee>
         IN_ORDER
      </ChunkClientProcessingOrderGuarantee>
      <CompletedSizeInBytes>0</CompletedSizeInBytes>
      <CreatedAt>2015-11-24T02:00:17.000Z</CreatedAt>
      <Id>b053a7a8-8f25-454c-831a-e4d4618a0981</Id>
      <ImplicitJobIdResolution>FALSE</ImplicitJobIdResolution>
      <Naked>FALSE</Naked>
      <Name>Untitled</Name>
      <OriginalSizeInBytes>0</OriginalSizeInBytes>
      <Priority>URGENT</Priority>
      <Rechunked/>
      <RequestType>PUT</RequestType>
      <Truncated>FALSE</Truncated>
      <UserId>dc3cf8b0-ab38-4ce9-8d82-789352d71117</UserId>
   </Job>
</Data>