tencent cloud

Smart Media Hosting

Set Tenant Space Speed Limit

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-01-07 14:45:21

Description

Used to set the speed limit for tenant space.
Note:
Requires admin or space_admin permissions. For details about permissions, see API for Generating Access Tokens.
Once a speed limit is set, a per-connection speed limit will be applied to all subsequent download requests for the space.
If the download request itself has a speed limit for a single link set, the actual speed limit will be the minimum of the two values.
Normal preview behavior is not subject to speed limits, but when the preview interface is used to obtain download links for non-previewable file types, the download links will be subject to speed limits.

Request

Request Example

POST /api/v1/space/`{LibraryId}`/`{SpaceId}`/traffic-limit?access_token=`{AccessToken}`

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
This parameter must be specified and single-tenant mode is not supported.
AccessToken
Access token. See Generate Access Token
String
Yes

Request Body

application/json
{
"downloadTrafficLimit": 1000000
}
Request parameters
Description
Type
Required or Not
downloadTrafficLimit
Download speed limit: 100KB/s - 100MB/s, unit: Byte. Enter -1 to cancel the speed limit.
Int
Yes

Response

Response code

Modification succeeded, return HTTP 204 No Content.

Response Body

Empty, no response body.

Error Codes

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

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백