tencent cloud

Smart Media Hosting

Querying Media Library Capacity Information

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2026-01-07 14:46:47

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.


Ajuda e Suporte

Esta página foi útil?

comentários