接口请求域名: smh.intl.tencentcloudapi.com 。
查询 PaaS 服务媒体库列表
默认接口请求频率限制:20次/秒。
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:DescribeLibraries。 |
| Version | 是 | String | 公共参数,本接口取值:2021-07-12。 |
| Region | 否 | String | 公共参数,此参数为可选参数。 |
| LibraryIds.N | 否 | Array of String | 按照一个或者多个媒体库 ID 查询,每次请求的上限为 100 个。 |
| PageNumber | 否 | Integer | 页码,整型,配合 PageSize 使用,默认值为 1。 |
| PageSize | 否 | Integer | 每页数目,整型,配合 PageNumber 使用,默认值为 20,最大值为 100。 |
| 参数名称 | 类型 | 描述 |
|---|---|---|
| List | Array of Library | 媒体库列表 |
| TotalCount | Integer | 总数 |
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
查询媒体库
POST / HTTP/1.1
Host: smh.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeLibraries
<公共请求参数>
{}
{
"Response": {
"List": [
{
"LibraryId": "smh0q8nrvsg7t6y6",
"Name": "字符串",
"Remark": "字符串",
"BucketName": "smh-it-251202137",
"BucketRegion": "ap-guangzhou",
"AccessDomain": "smh0q8nrvsg7t6y6.api.tencentsmh.cn",
"CreationTime": "2021-09-28T06:02:26Z",
"LibraryExtension": {
"IsFileLibrary": true,
"IsMultiSpace": false,
"CosStorageClass": "INTELLIGENT_TIERING",
"UseRecycleBin": false,
"AutoRemoveRecycledDays": null,
"EnableSearch": false,
"DenyOnQuotaLessThanUsage": false,
"EnableFileHistory": false,
"FileHistoryCount": null,
"FileHistoryExpireDay": null,
"MaxDirFileNameLength": 255,
"IsPublicRead": false,
"IsMultiAlbum": null,
"AllowPhoto": null,
"AllowPhotoExtName": null,
"AllowVideo": null,
"AllowVideoExtName": null,
"AllowFileExtName": [],
"RecognizeSensitiveContent": false
},
"Size": "0",
"DirNum": "0",
"FileNum": "0"
},
{
"LibraryId": "smh1jjexrwwoa9ok",
"Name": "字符串",
"Remark": "",
"BucketName": "smh-it-251202137",
"BucketRegion": "ap-guangzhou",
"AccessDomain": "smh1jjexrwwoa9ok.api.tencentsmh.cn",
"CreationTime": "2021-09-28T09:43:07Z",
"LibraryExtension": {
"IsFileLibrary": true,
"IsMultiSpace": false,
"CosStorageClass": "INTELLIGENT_TIERING",
"UseRecycleBin": false,
"AutoRemoveRecycledDays": null,
"EnableSearch": false,
"DenyOnQuotaLessThanUsage": false,
"EnableFileHistory": false,
"FileHistoryCount": null,
"FileHistoryExpireDay": null,
"MaxDirFileNameLength": 255,
"IsPublicRead": false,
"IsMultiAlbum": null,
"AllowPhoto": null,
"AllowPhotoExtName": null,
"AllowVideo": null,
"AllowVideoExtName": null,
"AllowFileExtName": [],
"RecognizeSensitiveContent": false
},
"Size": "0",
"DirNum": "0",
"FileNum": "0"
},
{
"LibraryId": "smh12pzokd9c6r5n",
"Name": "字符串",
"Remark": "",
"BucketName": "smh-it-251202137",
"BucketRegion": "ap-guangzhou",
"AccessDomain": "smh12pzokd9c6r5n.api.tencentsmh.cn",
"CreationTime": "2021-09-28T12:31:31Z",
"LibraryExtension": {
"IsFileLibrary": true,
"IsMultiSpace": false,
"CosStorageClass": "INTELLIGENT_TIERING",
"UseRecycleBin": false,
"AutoRemoveRecycledDays": null,
"EnableSearch": false,
"DenyOnQuotaLessThanUsage": false,
"EnableFileHistory": false,
"FileHistoryCount": null,
"FileHistoryExpireDay": null,
"MaxDirFileNameLength": 255,
"IsPublicRead": false,
"IsMultiAlbum": null,
"AllowPhoto": null,
"AllowPhotoExtName": null,
"AllowVideo": null,
"AllowVideoExtName": null,
"AllowFileExtName": [],
"RecognizeSensitiveContent": false
},
"Size": "0",
"DirNum": "0",
"FileNum": "0"
},
{
"LibraryId": "smh3s9iq6lfsoud1",
"Name": "字符串",
"Remark": "",
"BucketName": "smh-it-251202137",
"BucketRegion": "ap-guangzhou",
"AccessDomain": "smh3s9iq6lfsoud1.api.tencentsmh.cn",
"CreationTime": "2021-09-28T12:32:06Z",
"LibraryExtension": {
"IsFileLibrary": true,
"IsMultiSpace": false,
"CosStorageClass": "INTELLIGENT_TIERING",
"UseRecycleBin": false,
"AutoRemoveRecycledDays": null,
"EnableSearch": false,
"DenyOnQuotaLessThanUsage": false,
"EnableFileHistory": false,
"FileHistoryCount": null,
"FileHistoryExpireDay": null,
"MaxDirFileNameLength": 255,
"IsPublicRead": false,
"IsMultiAlbum": null,
"AllowPhoto": null,
"AllowPhotoExtName": null,
"AllowVideo": null,
"AllowVideoExtName": null,
"AllowFileExtName": [],
"RecognizeSensitiveContent": false
},
"Size": "0",
"DirNum": "0",
"FileNum": "0"
},
{
"LibraryId": "smh1porquwr19l42",
"Name": "字符串",
"Remark": "",
"BucketName": "smh-it-251202137",
"BucketRegion": "ap-guangzhou",
"AccessDomain": "smh1porquwr19l42.api.tencentsmh.cn",
"CreationTime": "2021-09-28T12:33:20Z",
"LibraryExtension": {
"IsFileLibrary": true,
"IsMultiSpace": false,
"CosStorageClass": "INTELLIGENT_TIERING",
"UseRecycleBin": false,
"AutoRemoveRecycledDays": null,
"EnableSearch": false,
"DenyOnQuotaLessThanUsage": false,
"EnableFileHistory": false,
"FileHistoryCount": null,
"FileHistoryExpireDay": null,
"MaxDirFileNameLength": 255,
"IsPublicRead": false,
"IsMultiAlbum": null,
"AllowPhoto": null,
"AllowPhotoExtName": null,
"AllowVideo": null,
"AllowVideoExtName": null,
"AllowFileExtName": [],
"RecognizeSensitiveContent": false
},
"Size": "0",
"DirNum": "0",
"FileNum": "0"
},
{
"LibraryId": "smh32bey5u1lr6bx",
"Name": "字符串",
"Remark": "",
"BucketName": "smh-it-251202137",
"BucketRegion": "ap-guangzhou",
"AccessDomain": "smh32bey5u1lr6bx.api.tencentsmh.cn",
"CreationTime": "2021-09-28T12:33:27Z",
"LibraryExtension": {
"IsFileLibrary": true,
"IsMultiSpace": false,
"CosStorageClass": "INTELLIGENT_TIERING",
"UseRecycleBin": false,
"AutoRemoveRecycledDays": null,
"EnableSearch": false,
"DenyOnQuotaLessThanUsage": false,
"EnableFileHistory": false,
"FileHistoryCount": null,
"FileHistoryExpireDay": null,
"MaxDirFileNameLength": 255,
"IsPublicRead": false,
"IsMultiAlbum": null,
"AllowPhoto": null,
"AllowPhotoExtName": null,
"AllowVideo": null,
"AllowVideoExtName": null,
"AllowFileExtName": [],
"RecognizeSensitiveContent": false
},
"Size": "0",
"DirNum": "0",
"FileNum": "0"
}
],
"TotalCount": 6,
"RequestId": "3d486825-fc56-434f-82d0-1db782b66728"
}
}
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
| 错误码 | 描述 |
|---|---|
| InternalError | 内部错误。 |
| InvalidParameterValue.LimitExceeded | 参数值数量或字符数超过限制。 |
文档反馈