Enabling Origin Protection

Last updated: 2020-02-21 12:07:01

    Description

    This API is used to enable the original image protection feature for a bucket.

    Request

    Request sample

    PUT /?origin-protect HTTP/1.1
    Host: <BucketName-APPID>.pic.<Region>.myqcloud.com 
    Date: GMT Date
    Authorization: Auth String

    Authorization: Auth String (For more information, see Request Signature).

    Request line

    PUT /?origin-protect HTTP/1.1

    This API allows PUT requests.

    Request header

    Common headers

    Common request headers are used for the implementation of this request operation. For more information, see Common Request Headers.

    Special request headers

    This request operation does not use any special request header.

    Request body

    The request body of this request is empty.

    Response

    Response header

    Common response headers

    This response uses common response headers. For more information, see Common Response Headers.

    Special response headers

    This response does not use any special response header.

    Response body

    Null is returned for the response body.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help