tencent cloud

Cloud Infinite

Release Notes and Announcements
Release Notes
Announcements
Product Introduction
Product Overview
Product Strengths
Use Cases
Feature Overview
Regions and Domains
Specifications and Limits
Billing
Billing Overview
Billing Mode
Billable Items
Free Tier
Payment Overdue
Viewing Bill Details
FAQs
Getting Started
Registering and Logging In
Bind Bucket
Uploading and Processing File
Downloading and Deleting Images
Unbinding Buckets
Using CI via COS
Features
Image Processing
Media Processing
Content Moderation
AI Content Recognition
File Processing
Smart Voice
File processing
User Guide
Overview
Bucket Management
Smart Toolbox
Job and Workflow
Data Monitoring
Usage statistics
Use Cases
Copyright Protection Solutions
Image Processing Practices
Working with API Authorization Policies
Workflow Practices
API Documentation
API Overview
Structure
Common Request Headers
Common Response Headers
Activate Vast Service
Image Processing
AI-Based Content Recognition
Smart Audio
Media Processing
Content Moderation
Document Processing
File Processing
Job and Workflow
Cloud Virus Detection
Error Codes
Request Signature
SDK Documentation
SDK Overview
Android SDK
iOS SDK
COS Android SDK
C SDK
C++ SDK
.NET(C#) SDK
Go SDK
COS iOS SDK
Java SDK
JavaScript SDK
Node.js SDK
PHP SDK
Python SDK
Mini Program SDK
Personal Information Protection Policy for SDK
Security and Compliance
Permission ‍Management
FAQs
Basic Settings
Document Processing
Media Processing
Content Recognition
Smart Audio
Agreements
Service Level Agreement
Contact Us
Glossary
DokumentasiCloud InfiniteSDK DocumentationGo SDKFile PreviewQuerying Document Preview Feature Status

Querying Document Preview Feature Status

PDF
Mode fokus
Ukuran font
Terakhir diperbarui: 2024-02-29 16:52:32

Overview

This document provides an overview of APIs and SDK code samples for querying the document preview feature status.
API
Description
Queries whether the document preview feature is enabled for a bucket.

Querying Document Preview Feature Status

Feature description

This API (DescribeDocProcessBuckets) is used to query whether the document preview feature is enabled for a bucket.

Method prototype

func (s *CIService) DescribeDocProcessBuckets(ctx context.Context, opt *DescribeDocProcessBucketsOptions) (*DescribeDocProcessBucketsResult, *Response, error)

Sample request

BucketsOpt := &cos.DescribeDocProcessBucketsOptions{
Regions: "ap-shanghai",
}
res, _, err := c.CI.DescribeDocProcessBuckets(context.Background(), BucketsOpt)

Parameter description

type DescribeDocProcessBucketsOptions struct {
Regions string
BucketNames string
BucketName string
PageNumber int
PageSize int
}
Parameter
Description
Type
Regions
Region abbreviation, such as ap-shanghai and ap-beijing. To specify multiple regions, separate them with commas (,). For more information, see Regions and Domains.
string
BucketNames
Bucket name. To specify multiple bucket names, separate them with commas (,). Exact search is supported.
string
BucketName
Bucket name prefix for prefix search
string
PageNumber
Page number
int
pageSize
Number of entries per page
int

Response description

type DescribeDocProcessBucketsResult struct {
RequestId string
TotalCount int
PageNumber int
PageSize int
DocBucketList []DocProcessBucket
}
type DocProcessBucket struct {
BucketId string
Name string
Region string
CreateTime string
AliasBucketId string
}
Parameter
Description
Type
RequestId
Unique request ID
string
TotalCount
Total number of buckets with document preview enabled
int
PageNumber
Current page number, which is the same as pageNumber in the request
int
PageSize
Number of entries per page, which is the same as pageSize in the request
int
DocBucketList
List of buckets with document preview enabled
Container
BucketId
Bucket ID
string
Name
Bucket name, which is the same as BucketId
string
Region
Region
string
CreateTime
Creation time
string
AliasBucketId
Bucket alias
string

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan