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


Spectra S3 Bucket, Object, and Job Operations : Job Operations : Create VERIFY Job

Create VERIFY Job
Description
Create a job to verify objects. A VERIFY job reads data from the permanent data store and verifies that the CRC of the data read matches the expected CRC. VERIFY jobs ALWAYS read from the data store - even if the data currently resides in cache.
*
Requests
Syntax
PUT http[s]://{datapathDNSname}/_rest_/bucket/{bucket UUID or name}?operation=START_BULK_VERIFY[&aggregating=TRUE|FALSE][&name={string}][&priority=URGENT|HIGH|NORMAL|LOW]
Request Parameters
Whether or not to aggregate jobs. When selected, if additional VERIFY jobs using the same bucket and chunk_client_processing_order_guarantee are created within 30 minutes of the initial job creation, they are appended to the initial job to create a larger job.
Values: TRUE, FALSE (default)
Notes:  
The priority for processing this job. The job priority determines the assigned resources and processing order. Jobs with Priority URGENT can use up all of the resources and prevent other jobs from making progress. Use this priority sparingly. Verify jobs can be interrupted every 30 minutes if a job with a higher priority is received.
Values: URGENT, HIGH, NORMAL, LOW
Request Elements
An XML payload must be sent to describe the PUT job to create, formatted as follows:
<Objects
   <Object Name="{
string}" Length="{64‑bit integer}"/>
   <Object Name="{string}" Length="{64‑bit integer}"/>
</Objects>
where the parameters are defined as follows:
Responses
Response Elements
<MasterObjectList
   Aggregating="TRUE|FALSE"
   BucketName="{
string}"
   CachedSizeInBytes="{64‑bit integer}"
   ChunkClientProcessingOrderGuarantee="IN_ORDER|NONE"
   CompletedSizeInBytes="{64‑bit integer}"
   EntirelyInCache="TRUE|FALSE"
   JobId="{string}"
   Naked="TRUE|FALSE"
   Name="{string}"
   OriginalSizeInBytes="{64‑bit integer}"
   Priority="CRITICAL|URGENT|HIGH|NORMAL|LOW|BACKGROUND"
   RequestType="VERIFY"
   StartDate="YYYY-MM-DDThh:mm:ss.xxxZ"
   Status="IN_PROGRESS|COMPLETED|CANCELED"
   UserId="{string}"
   UserName="{string}">
   <Nodes>
      <Node EndPoint="{string}" Id="{string}"/>
   </Nodes>
   <Objects
      ChunkId="{string}"
      ChunkNumber="{32‑bit integer}">
      <Object Id="{string}" InCache="TRUE|FALSE"
         Latest="TRUE|FALSE" Length="{64‑bit integer}"
         Name="{string}" Offset="{64‑bit integer}"
         Version="{64‑bit integer}"/>
      ...
   </Objects>
   ...
</MasterObjectList>
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=VERIFY, this is 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=VERIFY, this indicates the amount of data with CRCs 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
§
IN_PROGRESS — The job is currently running.
§
COMPLETED — The job completed.
§
CANCELED — The job was canceled by the user or automatically due to internal timeouts.
Example
Sample Request
This request creates a job to verify two objects in the bucket named “bucket1”.
PUT http://blackpearl-hostname/_rest_/bucket/bucket1?operation=START_BULK_VERIFY&name="VerifyJob" HTTP/1.1
<Objects
   WriteOptimization="CAPACITY">
   <Object Name="test.aaf" Length="107426611200"/>
   <Object Name="T950.tif" Length="9572972"/>
</Objects>
Sample Response
HTTP/1.1 200 OK
<MasterObjectList
   Aggregating="FALSE"
   BucketName="bucket1"
   CachedSizeInBytes="0"
   ChunkClientProcessingOrderGuarantee="NONE"
   CompletedSizeInBytes="0"
   EntirelyInCache="FALSE"
   JobId="28f15f6d-3a14-4f97-b81d-8c2908030e7b"
   Naked="FALSE"
   Name="VerifyJob"
   OriginalSizeInBytes="0"
   Priority="LOW"
   RequestType="VERIFY"
   StartDate="2015-10-07T22:33:22.000Z"
   Status="IN_PROGRESS"
   UserId="9f7b5821-0f66-4bd5-a0e2-d5b944b49a82"
   UserName="user_name">
   <Nodes>
      <Node EndPoint="blackpearl-hostname"
         Id="f304e3d8-b167-4fd7-bdb2-7f91afab4549"/>
   </Nodes>
   <Objects ChunkId="4d09ce4c-8dc3-43e9-806e-25ac79a3d9b7"
      ChunkNumber="1">
      <Object Id="98e754ac-2015-4c90-bdb3-fc7414e0fde1"
         InCache="FALSE" Latest="TRUE" Length="10" Name="o1"
         Offset="10" Version=1"/>
   </Objects>
</MasterObjectList>