API | Operation | Description |
Querying media processing activation status | Queries buckets with media processing enabled |
CosResult DescribeMediaBuckets(const DescribeMediaBucketsReq& request, DescribeMediaBucketsResp* response);
qcloud_cos::CosConfig config("./config.json");qcloud_cos::CosAPI cos(config);DescribeMediaBucketsReq req;DescribeMediaBucketsResp resp;req.SetRegions("ap-guangzhou");// Set the bucket name. To specify multiple bucket names, separate them with commas. Exact search is supported.// req.SetBucketNames("xxx");// Set the bucket name prefix for prefix search// req.SetBucketName("xxx");// Set the page number// req.SetPageNumber();// Set the number of entries per page// req.SetPageSize();CosResult result = cos.DescribeMediaBuckets(req, &resp);qcloud_cos::CosResult result = cos.GetObject(req, &resp);if (result.IsSucc()) {// The call is successful. You can call the `resp` member functions to get the return content.std::cout << "Result: " << resp.GetResult().to_string() << std::endl;} else {// The call failed. You can call the `result` member functions to get the error information.}
Parameter | Description | Type | Required |
request | Operation request. | DescribeMediaBucketsReq | Yes |
response | Operation response. | DescribeMediaBucketsResp | Yes |
Was this page helpful?