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


Spectra BlackPearl Converged Storage System : Advanced Bucket Management Operations : Data Policy Operations : Modify Data Policy

Modify Data Policy
Description
Modify a data policy.
Notes:
§
§
Requests
Syntax
POST http[s]://{datapathDNSname}/_rest_/data_policy/{data policy UUID, name, or other unique attribute}​​[?always_force_put_job_creation=TRUE|​​FALSE]​​[&always_minimize_spanning_across_media=TRUE|​​FALSE]​​[&blobbing_enabled=TRUE|​​FALSE][&checksum_type=CRC_32|​​CRC_32C|​​MD5|​​SHA_256|​​SHA_512][&default_blob_size={64‑bit integer}]​​[&default_get_job_priority=URGENT|HIGH|NORMAL|LOW][&default_put_job_priority=URGENT|HIGH|NORMAL|LOW][&default_verify_after_write=TRUE|FALSE]​[&default_verify_job_priority=URGENT|HIGH|NORMAL|LOW][&end_to_end_crc_required=TRUE|FALSE][&max_versions_to_keep={32-bit integer}]​[&name={string}]​[&rebuild_priority=URGENT|HIGH|NORMAL|LOW]​[&versioning=NONE|KEEP_LATEST|KEEP_MULTIPLE_VERSIONS]
Request Parameters 
Values: TRUE, FALSE (default)
Notes:  
Values: TRUE, FALSE
Note: If the data policy is already in use by a bucket, the checksum_type cannot be changed.
Values: CRC_32, CRC_32C, MD5, SHA_256, SHA_512
Notes:  
Specifies the default GET job priority for the data policy. The job priority determines the resources assigned and the 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
Specifies the default PUT job priority for the data policy. The job priority determines the resources assigned and the 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
Values: TRUE, FALSE
Specifies the default verify job priority for the data policy. The job priority determines the resources assigned and the 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
Values: URGENT, HIGH, NORMAL, LOW
§
NONE (default) — Only one version of an object may exist at any time and the version number of the object is always 1.
§
KEEP_LATEST — Only one version of the data is available at a time. When a new version of an object is written, the old version is retained until the new version is fully written in compliance with the data policy, and then the old version is deleted.
§
KEEP_MULTIPLE_VERSIONS — Multiple versions of the object, up to the number specified by max_versions_to_ keep are retained.
Notes:  
§
KEEP_LATEST versioning cannot be used for a data policy which uses a storage domain with ltfs_file_naming=OBJECT_NAME (see ltfs_file_naming).
§
KEEP_LATEST requires that the PUT job for the earlier version of the object complete before the PUT of the latest version of the object with the same name in order for the PUT to succeed.
Responses
Response Elements
<Data>
   <AlwaysForcePutJobCreation>
      TRUE|FALSE
   </AlwaysForcePutJobCreation>
   <AlwaysMinimizeSpanningAcrossMedia>
      TRUE|FALSE
   </AlwaysMinimizeSpanningAcrossMedia>
   <BlobbingEnabled>TRUE|FALSE</BlobbingEnabled>
   <ChecksumType>CRC_32|CRC_32C|MD5|SHA_256|SHA_512</ChecksumType>
   <CreationDate>
YYYY-MM-DDThh:mm:ss.xxxZ</CreationDate>
   <DefaultBlobSize>{64‑bit integer}</DefaultBlobSize>
   <DefaultGetJobPriority>
      CRITICAL|URGENT|HIGH|NORMAL|LOW|BACKGROUND
   </DefaultGetJobPriority>
   <DefaultPutJobPriority>
      CRITICAL|URGENT|HIGH|NORMAL|LOW|BACKGROUND
   </DefaultPutJobPriority>
   <DefaultVerifyAfterWrite>TRUE|FALSE</DefaultVerifyAfterWrite>
   <DefaultVerifyJobPriority>
      CRITICAL|URGENT|HIGH|NORMAL|LOW|BACKGROUND
   </DefaultVerifyJobPriority>
   <EndToEndCrcRequired>TRUE|FALSE</EndToEndCrcRequired>
   <Id>{string}</Id>
   <MaxVersionsToKeep>{32‑bit integer}</MaxVersionsToKeep>
   <Name>{string}</Name>
   <RebuildPriority>
      CRITICAL|URGENT|HIGH|NORMAL|LOW|BACKGROUND
   </RebuildPriority>
   <Versioning>NONE|KEEP_LAST</Versioning>
</Data>
where the response elements are defined as follows:
Values: TRUE, FALSE
Values: CRITICAL, URGENT, HIGH, NORMAL, LOW, BACKGROUND
Values: CRITICAL, URGENT, HIGH, NORMAL, LOW, BACKGROUND
Values: TRUE, FALSE
Values: CRITICAL, URGENT, HIGH, NORMAL, LOW, BACKGROUND
Values: CRITICAL, URGENT, HIGH, NORMAL, LOW, BACKGROUND
Values: NONE, KEEP_LATEST, KEEP_MULTIPLE_VERSIONS see versioning.
Example
Sample Request
This request renames the data policy “policy1” to “newname”.
POST http://blackpearl-hostname/_rest_/data_policy/policy1​​?name=newname HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<Data>
   <AlwaysForcePutJobCreation>FALSE</AlwaysForcePutJobCreation>
   <AlwaysMinimizeSpanningAcrossMedia>
      FALSE
   </AlwaysMinimizeSpanningAcrossMedia>
   <BlobbingEnabled>TRUE</BlobbingEnabled>
   <ChecksumType>MD5</ChecksumType>
   <CreationDate>2015-07-29 16:26:12.305</CreationDate>
   <DefaultBlobSize>332</DefaultBlobSize>
   <DefaultGetJobPriority>HIGH</DefaultGetJobPriority>
   <DefaultPutJobPriority>NORMAL</DefaultPutJobPriority>
   <DefaultVerifyJobPriority>LOW</DefaultVerifyJobPriority>
   <EndToEndCrcRequired>FALSE</EndToEndCrcRequired>
   <Id>4492e1db-35d7-416c-875d-8e1654b5b1ee</Id>
   <MaxVersionsToKeep>1000</MaxVersionsToKeep>
   <Name>newname</Name>
   <RebuildPriority>LOW</RebuildPriority>
   <Versioning>NONE</Versioning>
</Data>