tencent cloud

Feedback

Original Image Protection

Last updated: 2024-02-29 16:52:32

    Overview

    This document provides an overview of APIs and SDK code samples for original image protection.
    API
    Description
    Enables the original image protection feature for a bucket.
    Queries whether the original image protection feature is enabled.
    Disables the original image protection feature.

    Enabling Original Image Protection

    Feature description

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

    Method prototype

    func (s *CIService) OpenOriginProtect(ctx context.Context) (*Response, error)

    Sample request

    _, err := c.CI.OpenOriginProtect(context.Background())

    Querying Original Image Protection Status

    Feature description

    This API is used to query whether the original image protection feature is enabled.

    Method prototype

    func (s *CIService) GetOriginProtect(ctx context.Context) (*OriginProtectResult, *Response, error)

    Sample request

    res, _, err := c.CI.GetOriginProtect(context.Background())

    Parameter description

    Parameter
    Description
    OriginProtectResult
    Whether original image protection is enabled

    Disabling Original Image Protection

    Feature description

    This API is used to disable the original image protection feature.

    Method prototype

    func (s *CIService) CloseOriginProtect(ctx context.Context) (*Response, error)

    Sample request

    _, err := c.CI.CloseOriginProtect(context.Background())
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support