API | Description |
Queries whether the document preview feature is enabled for a bucket. |
DescribeDocProcessBuckets
) is used to query whether the document preview feature is enabled for a bucket.func (s *CIService) DescribeDocProcessBuckets(ctx context.Context, opt *DescribeDocProcessBucketsOptions) (*DescribeDocProcessBucketsResult, *Response, error)
BucketsOpt := &cos.DescribeDocProcessBucketsOptions{Regions: "ap-shanghai",}res, _, err := c.CI.DescribeDocProcessBuckets(context.Background(), BucketsOpt)
type DescribeDocProcessBucketsOptions struct {Regions stringBucketNames stringBucketName stringPageNumber intPageSize 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 |
type DescribeDocProcessBucketsResult struct {RequestId stringTotalCount intPageNumber intPageSize intDocBucketList []DocProcessBucket}type DocProcessBucket struct {BucketId stringName stringRegion stringCreateTime stringAliasBucketId 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 |
Was this page helpful?