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. |
func (s *CIService) OpenOriginProtect(ctx context.Context) (*Response, error)
_, err := c.CI.OpenOriginProtect(context.Background())
func (s *CIService) GetOriginProtect(ctx context.Context) (*OriginProtectResult, *Response, error)
res, _, err := c.CI.GetOriginProtect(context.Background())
Parameter | Description |
OriginProtectResult | Whether original image protection is enabled |
func (s *CIService) CloseOriginProtect(ctx context.Context) (*Response, error)
_, err := c.CI.CloseOriginProtect(context.Background())
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback