tencent cloud

Cloud Infinite

CI Service

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2024-02-29 16:52:32

Overview

This document provides an overview of APIs and SDK code samples for CI.
API
Description
Activates the CI service, which needs to be bound to an existing COS bucket.
Queries whether the CI service has been activated for a bucket.
Unbinds the CI service from a bucket (the bucket and files in it will be retained in COS).

Binding CI

Feature description

This API is used to activate the CI service.

Method prototype

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

Sample request

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

Querying CI Status

Feature description

This API is used to query whether CI has been enabled for a bucket.

Method prototype

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

Sample request

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

Parameter description

Parameter
Description
CIServiceResult
Whether the CI service is activated.

Unbinding CI

Feature description

This API is used to unbind the CI service from a bucket.

Method prototype

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

Sample request

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

Ajuda e Suporte

Esta página foi útil?

comentários