tencent cloud

Retrieve Tenant Space Quota
Last updated:2026-01-07 14:27:58
Retrieve Tenant Space Quota
Last updated: 2026-01-07 14:27:58

Description

To obtain tenant space quotas.
Note:
Required permission: admin. For details about permissions, see Generate Access Token API.

Request

Request Example

GET /api/v1/quota/{LibraryId}/{SpaceId}?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
SpaceId
Space ID, see create tenant space
String
Yes
AccessToken
Access token, see generate access token
String
Yes
UserId
User identity recognition is used to temporarily specify user identity when the access token corresponds to admin permission and the user identity recognition during token application is empty. For details, see Generate Access Token API.
String
No

Request Body

This request does not have a request body.

Response

Response code

Successfully obtained, returns HTTP 200 OK.

Response Body

application/json
Response body example:
{ "id": 1, "capacity": "1099511627776" }
Response body field description:
Response Parameters
Description
Type
id
Quota ID, used for subsequent quota check, quota modification or quota deletion.
Int
capacity
The specific value of the quota, in bytes (Byte), can be specified in digital form or string form. To avoid precision loss from large numbers, it is recommended to specify this field as a string form.
String

Error Codes

This request operation has no special error messages. For common error messages, see Error Codes.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback