tencent cloud

Smart Media Hosting

Querying Media Library Capacity Information

Download
聚焦模式
字号
最后更新时间: 2026-01-07 14:46:47
本文档由 AI 翻译

Description

Used for querying media library capacity information.
Note:
admin permissions are required. For details about permissions, see Generate Access Token Interface.

Request

Request Example

GET /api/v1/usage/`{LibraryId}`?access_token=`{AccessToken}`&user_id=`{UserId}`

Request Parameter

Request parameters.
Description
Type
Required or Not
LibraryId
Media Library ID, obtained after creating a media library in the media hosting console. See Create Media Library
String
Yes
AccessToken
Access token. For Public Read Media Library or tenant space, this parameter is not specified. Otherwise, specify this parameter.
String
No
UserId
User identity recognition. When the permission corresponding to the access token is admin permission and the user identity recognition when applying for the access token is empty, it is used to temporarily specify user identity. For details, see Generate Access Token API.
String
No

Request Body

This request does not have a request body.

Response

Response code

Query succeeded, return HTTP 200 OK.

Response Body

{
"totalFileSize": "3333"
}
Field description in the response body:
Node Name (Keyword)
Description
Type
totalFileSize
The storage quota occupied by uploaded files in the library. In bytes (Byte).
String

Error Codes

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


帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈