tencent cloud

Smart Media Hosting

Performing Quota Operations

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 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

Ajuda e Suporte

Esta página foi útil?

comentários