API | Operation | Description |
Querying media buckets | Queries the list of buckets with media processing enabled under the current account. |
public MediaBucketResponse describeMediaBuckets(MediaBucketRequest mediaBucketRequest);
Parameter | Description | Type | Required |
bucketName | 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 |
CosClientException
or CosServiceException
exception. For more information, see Troubleshooting.//1. Create a template request objectMediaBucketRequest request = new MediaBucketRequest();//2. Add request parameters as detailed in the API documentationrequest.setBucketName("examplebucket-1250000000");//3. Call the API to get the bucket response objectMediaBucketResponse response = client.describeMediaBuckets(request);
Was this page helpful?