tencent cloud

Cloud Infinite

CI Service

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 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())

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백