All Products
Search
Document Center

Put Process Configuration

Last Updated: Dec 05, 2017

Put Process Configuration is used to set the attributes related to image processing in the bucket.

Request syntax

 
  1. PUT /?processConfiguration HTTP/1.1
  2. Host: BucketName.oss-cn-hangzhou.aliyuncs.com
  3. Date: GMT Date
  4. Content-Length: 188
  5. Authorization: SignatureValue
  6. <BucketProcessConfiguration>
  7. <CompliedHost>img</CompliedHost>
  8. <SourceFileProtect>Disabled</SourceFileProtect>
  9. <SourceFileProtectSuffix>jpg,png</SourceFileProtectSuffix>
  10. <StyleDelimiters>/,-</StyleDelimiters>
  11. <OssDomainSupportAtProcess>Enabled</OssDomainSupportAtProcess>
  12. </BucketProcessConfiguration>

Request elements

Name Description
CompliedHost The domain name where the processing configuration takes effect.
Only two values are available: img/both. The img value indicates that the configured style separators only apply to IMG. The both value indicates that the OSS can also use the style separators of the IMG.
Type: String
Parent element: BucketProcessConfiguration
SourceFileProtect Whether original images have file protection enabled.
Only two values are available: Enabled/Disabled. The Enabled value indicates that file protection is enabled for original images. The Disabled value indicates that file protection is not enabled for original images.
Type: String
Parent element: BucketProcessConfiguration
SourceFileProtectSuffix Set the suffix of original image files for protection.
If you want to enable original image protection for JPG and GIF file formats, set the value to jpg,gif. If you want to protect all image files, set the value to *. The setting is valid when the “SourceFileProtect” feature is “Enabled”.
Type: String
Parent element: BucketProcessConfiguration
SourceFileProtectSuffix Set the suffix of original image files for protection.
If you want to enable original image protection for JPG and GIF file formats, set the value to jpg,gif. If you want to protect all image files, set the value to *. The setting is valid when the “SourceFileProtect” feature is “Enabled”.
Type: String
Parent element: BucketProcessConfiguration
StyleDelimiters Configure the style separator.
You can configure multiple separators once and separate the parameters with ,. If you do not need style separators, set the value to null.
Type: String
Parent element: BucketProcessConfiguration
BucketProcessConfiguration Requested container.
Type: Container
Parent element: None

Detail analysis

Sample

Request sample

 
  1. PUT /?processConfiguration HTTP/1.1
  2. Host: BucketName.oss-cn-hangzhou.aliyuncs.com
  3. Date: GMT Date
  4. Content-Length: 188
  5. Authorization: SignatureValue
  6. <BucketProcessConfiguration>
  7. <CompliedHost>img</CompliedHost>
  8. <SourceFileProtect>Disabled</SourceFileProtect>
  9. <SourceFileProtectSuffix>jpg,png</SourceFileProtectSuffix>
  10. <StyleDelimiters>/,-</StyleDelimiters>
  11. <OssDomainSupportAtProcess>Enabled</OssDomainSupportAtProcess>
  12. </BucketProcessConfiguration>

Response sample

 
  1. HTTP/1.1 200 OK
  2. Server: AliyunOSS
  3. Date: Fri, 24 Feb 2012 07:32:52 GMT
  4. Last-Modified: Fri, 24 Feb 2012 06:07:48 GMT
  5. Content-Length: 0
  6. Connection: keep-alive
  7. x-oss-request-id: 5650BD72207FB30443962F9A