tencent cloud

Smart Media Hosting

Performing Quota Operations

PDF
聚焦模式
字号
最后更新时间: 2026-01-07 10:49:16

Introduction

This document provides an introduction to quota APIs as well as example code.

Retrieve Tenant Space Quota

Feature Description

The space quota is used to obtain the tenant.

Sample Code

try {
let result = await SMHQuotaApis.getSpaceQuota({
libraryId:"libraryId",
spaceId:"spaceId"
});
}catch (e) {
// Exception handling
}

Parameter Description

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
spaceId
Space ID. If the media library is in single-tenant mode, this parameter is fixed as hyphen (`-`). If the media library is in multi-tenant mode, you must specify this parameter. Please refer to create tenant space
String
No

Retrieve Tenant Quota Information

Feature Description

To obtain tenant quota information.

Sample Code

try {
let result = await SMHQuotaApis.getSpaceQuotaInfo({
libraryId:"libraryId",
quotaId:'quotaId'
});
}catch (e) {
// Exception handling
}

Parameter Description

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
quotaId
Quota ID
String
Yes

帮助和支持

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

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

文档反馈