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

Media Bucket APIs

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 media buckets.
API
Operation
Description
Querying media processing activation status
Queries buckets with media processing enabled

Querying Media Processing Activation Status

Feature description

This API is used to query buckets with media processing enabled.
Note:
The COS Go SDK version must be at least v0.7.32.

Method prototype

func (s *CIService) DescribeMediaProcessBuckets(ctx context.Context, opt *DescribeMediaProcessBucketsOptions) (*DescribeMediaProcessBucketsResult, *Response, error)

Sample request

// Set the request URL to `ci.<Region>.myqcloud.com`
cu, _ := url.Parse("https://ci.ap-guangzhou.myqcloud.com")
b := &cos.BaseURL{CIURL: cu}
c := cos.NewClient(b, &http.Client{
Transport: &cos.AuthorizationTransport{
SecretID: "SECRETID",
SecretKey: "SECRETKEY",
})

opt := &cos.DescribeMediaProcessBucketsOptions{
Regions: "ap-guangzhou",
}
res, _, err := c.CI.DescribeMediaProcessBuckets(context.Background(), opt)
if err != nil {
// ERROR
}
fmt.Printf("res: %+v\\n", res)

Parameter description

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

Response description

type DescribeMediaProcessBucketsResult struct {
RequestId string
TotalCount int
PageNumber int
PageSize int
MediaBucketList []MediaProcessBucket
}
type MediaProcessBucket struct {
BucketId string
Region string
CreateTime string
}
The nodes are as described below:
Node Name (Keyword)
Parent Node
Description
Type
RequestId
Response
Unique ID of the request.
String
TotalCount
Response
Total number of media buckets.
Int
PageNumber
Response
Current page number, which is the same as pageNumber in the request.
Int
PageSize
Response
Number of entries per page, which is the same as pageSize in the request.
Int
MediaBucketList
Response
Media bucket list.
Container
MediaBucketList has the following sub-nodes:
Node Name (Keyword)
Parent Node
Description
Type
BucketId
Response.MediaBucketList
Bucket ID.
String
Name
Response.MediaBucketList
Bucket name, which is the same as BucketId.
String
Region
Response.MediaBucketList
Bucket region.
String
CreateTime
Response.MediaBucketList
Creation time.
String

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan