tencent cloud

Smart Media Hosting

Number of Files Statistics

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-01-07 14:45:20

Feature Description

Space file count statistics.
Note:
Requires admin or space_admin permissions.

Request

Request Example

GET /api/v1/space/{LibraryId}/{SpaceId}/file-count?access_token={AccessToken}

Request Parameter

Request parameters.
Description
Type
Required or Not
LibraryId
Media Library ID, obtained after creating a media library through the media hosting console. See Create Media Library
String
Yes
SpaceId
Space ID. If the media library is in single-tenant mode, this parameter is fixed as hyphen (-). See Create Tenant Space for retrieval.
String
Yes
AccessToken
Access token, see Generate Access Token
String
Yes

Request Body

Null

Response

Response code

Retrieval successful, returns HTTP 200 OK.

Response Body

{
"fileNum": "573005",
"dirNum": "448996",
"recycledFileNum": "252",
"recycledDirNum": "110",
"historyFileNum": "1829"
}
Response body field description:
Node Name (Keyword)
Description
Type
fileNum
Total number of files (including recycle bin and earlier versions)
String
dirNum
Total number of folders (including recycle bin)
String
recycledFileNum
Number of files in recycle bin
String
recycledDirNum
Number of folders in recycle bin
String
historyFileNum
Number of historical versions
String

Error Codes

This request operation has no special error messages. For common error messages, see Error Codes.

도움말 및 지원

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

피드백