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
포커스 모드
폰트 크기
마지막 업데이트 시간: 2024-03-01 14:43:58

Overview

This document provides an overview of APIs and SDK code samples for querying the media processing activation status.
API
Description
Queries media processing activation status

Querying Media Processing Activation Status

Feature description

This API is used to query buckets with media processing enabled.

Method prototype

public Guzzle\\Service\\Resource\\Model describeMediaBuckets(array $args = array());

Sample request

<?php

require dirname(__FILE__) . '/../vendor/autoload.php';

$secretId = "SECRETID"; // Replace it with your real `secretId`, which can be viewed and managed in the CAM console at https://console.tencentcloud.com/cam/capi
$secretKey = "SECRETKEY"; // Replace it with your real `secretKey`, which can be viewed and managed in the CAM console at https://console.tencentcloud.com/cam/capi
$region = "ap-beijing"; // Replace it with your real region information, which can be viewed in the console at https://console.tencentcloud.com/cos5/bucket
$cosClient = new Qcloud\\Cos\\Client(
array(
'region' => $region,
'schema' => 'https', // Protocol header, which is `http` by default
'credentials'=> array(
'secretId' => $secretId ,
'secretKey' => $secretKey)));

try {
$result = $cosClient->describeMediaBuckets(array(
'Regions' => '', // Optional region information, such as `ap-shanghai` and `ap-beijing`. To specify multiple regions, separate them with commas
'BucketNames' => '', // Optional bucket name. To specify multiple bucket names, separate them with commas. Exact search is supported.
'BucketName' => '', // Optional bucket name prefix for prefix search
'PageNumber' => 1, // Optional page number
'PageSize' => 20, // Optional number of entries per page
));
// Request successful
print_r($result);
} catch (\\Exception $e) {
// Request failed
echo($e);
}

Parameter description

Request has the following sub-nodes:
Name
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

Sample response

GuzzleHttp\\Command\\Result Object
(
[RequestId] => NjI2MTE5OTlfNzgSxDxIHF0ZF8xZjk0MmQ=
[ContentType] => application/xml
[ContentLength] => 4744
[TotalCount] => 51
[PageNumber] => 1
[PageSize] => 5
[MediaBucketList] => Array
(
[0] => Array
(
[BucketId] => examplebucket-1250000000
[Name] => examplebucket-1250000000
[Region] => ap-guangzhou
[CreateTime] => 2022-04-07T22:06:57+0800
)

[1] => Array
(
[BucketId] => examplebucket-1250000000
[Name] => examplebucket-1250000000
[Region] => ap-guangzhou
[CreateTime] => 2022-04-07T22:06:57+0800
)

[2] => Array
(
[BucketId] => examplebucket-1250000000
[Name] => examplebucket-1250000000
[Region] => ap-guangzhou
[CreateTime] => 2022-04-07T22:06:57+0800
)

[3] => Array
(
[BucketId] => examplebucket-1250000000
[Name] => examplebucket-1250000000
[Region] => ap-guangzhou
[CreateTime] => 2022-04-07T22:06:57+0800
)

[4] => Array
(
[BucketId] => examplebucket-1250000000
[Name] => examplebucket-1250000000
[Region] => ap-guangzhou
[CreateTime] => 2022-04-07T22:06:57+0800
)

)

[Location] => ci.ap-guangzhou.myqcloud.com/mediabucket
)

도움말 및 지원

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

피드백