tencent cloud


Bucket Operations

Last updated: 2022-05-23 12:24:10


    This document provides an overview of APIs and SDK code samples for media processing buckets in CI.

    API Operation Description
    DescribeMediaBuckets Querying media buckets Queries the list of buckets with media processing enabled under the current account.

    Basic Operations

    Querying the list of buckets with media processing enabled

    Feature description

    This API is used to query buckets with media processing enabled under the current account.

    Method prototype

    public MediaBucketResponse describeMediaBuckets(MediaBucketRequest mediaBucketRequest);

    Parameter description

    Parameter Description Type Required
    bucketName Bucket name in the format of BucketName-APPID. For more information, see Bucket Overview. String Yes
    bucketNames Bucket name. To specify multiple bucket names, separate them with commas. Exact search is supported. String No
    regions Region. To specify multiple regions, separate them with commas. Valid values: All, ap-shanghai, ap-beijing. String No
    pageNumber Page number. String No
    pageSize Number of entries per page. String No

    Response description

    • Success: The bucket object information is returned.
    • Failure: An error (such as the bucket does not exist) occurs, throwing the CosClientException or CosServiceException exception. For more information, see Troubleshooting.

    Sample request

    //1. Create a template request object
    MediaBucketRequest request = new MediaBucketRequest();
    //2. Add request parameters as detailed in the API documentation
    //3. Call the API to get the bucket response object
    MediaBucketResponse response = client.describeMediaBuckets(request);
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support