tencent cloud

Smart Media Hosting

Querying the Number of Tenant Spaces in a Media Library

PDF
フォーカスモード
フォントサイズ
最終更新日: 2026-01-07 14:45:21

Description

Query the number of tenant spaces in the media library.

Request

Request Example

GET /api/v1/space/{LibraryId}/count?access_token={AccessToken}&user_id={UserId}

Request Parameter

Request parameters.
Description
Type
Required or Not
LibraryId
Media Library ID, obtain it after creating a media library in the media hosting console, see create media library
String
Yes
AccessToken
Access token, see generate access token
String
Yes
UserId
User identity recognition, when the access token corresponds to admin privileges and the user identity recognition during token application 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

Successfully obtained, returned HTTP 200 OK.

Response Body

application/json
{
"total": 200
}
Field description in the response body:
Response Parameters
Description
Type
total
Tenant space count
Int

Error Codes

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

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック