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


Spectra S3 Bucket, Object, and Job Operations : Job Operations : Replicate PUT Job

Replicate PUT Job
Description
Replicates a job from another BlackPearl system to this BlackPearl system, ensuring that the objects are recognized as identical across the systems on which replication is performed. Clients must provide the response payload returned by Modify Active Job on the source BlackPearl system as the request payload for the Replicate PUT Job on the target system.
Requests
Syntax
PUT http[s]://{datapathDNSname}/_rest_/bucket/{UUID, name, or other unique attribute for the bucket}?operation=START_BULK_PUT&replicate[&priority=URGENT|HIGH|NORMAL|LOW]
To determine the UUID for a bucket, see Get Buckets - Spectra S3.
Request Parameters
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.
Values: URGENT, HIGH, NORMAL, LOW
Request Elements
An XML payload, the response from Modify Active Job run on the source BlackPearl system, must be sent as the request payload.
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="PUT"
   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=PUT, this is the amount of data successfully transferred to the BlackPearl Converged Storage System from the client.
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.
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 sent to “blackpearl-hostname2” with the response from the example for Get Job to Replicate on page 162, creates a bulk PUT job on “blackpearl-hostname2” identical to the job on the BlackPearl system on which Get Job to Replicate ran.
PUT http://blackpearl-hostname2/_rest_/bucket/bucket1?operation=start_bulk_put&replicate HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<MasterObjectList
   Aggregating="FALSE"
   BucketName="existing_bucket"
   CachedSizeInBytes="0"
   ChunkClientProcessingOrderGuarantee="IN_ORDER"
   CompletedSizeInBytes="0"
   EntirelyInCache="FALSE"
   JobId="cce39f77-7570-48e1-92de-235a5b282c1d"
   Naked="FALSE"
   Name="Untitled"
   OriginalSizeInBytes="10"
   Priority="NORMAL"
   RequestType="PUT"
   StartDate="2016-01-21T18:54:21.000Z"
   Status="IN_PROGRESS"
   UserId="d0bf86e8-7bba-4507-a0f0-2698fb8fccfa"
   UserName="test_user">
   <Nodes>
      <Node EndPoint="blackpearl-hostname"
      Id="a651430c-22aa-468b-8b4b-42b50627faf3"/>
   </Nodes>
   <Objects
      ChunkId="4294b5c2-b4ae-46db-8aca-858805a7a116"
      ChunkNumber="1">
      <Object Id="58fa3a04-7711-49b8-aaba-93b91eb93145"
         InCache="FALSE" Latest="TRUE" Length="10"
         Name="o1" Offset="0" Version=1"/>
   </Objects>
</MasterObjectList>