tencent cloud

Smart Media Hosting

Query Tenant Space Attributes

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

Description

Used for querying tenant space attributes.

Request

Request Example

GET /api/v1/space/`{LibraryId}`/`{SpaceId}`/extension?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. If the media library is in single-tenant mode, this parameter is fixed as hyphen (-). For retrieval, see Create Tenant Space
String
Yes
AccessToken
Access token, see Generate Access Token
String
Yes
UserId
User identity recognition, when the access token corresponds to admin permission and the user identity recognition during access token application is empty, be used to temporarily specify user identity. For details, see Generate Access Token
String
No

Request Body

This request does not have a request body.

Response

Response code

Successful retrieval, back HTTP 200 OK.

Response Body

{
"isPublicRead": false,
"isMultiAlbum": false,
"allowPhoto": true,
"allowVideo": true,
"allowPhotoExtname": [ ".jpg", ".png", ".heic" ],
"allowVideoExtname": [ ".mp4", ".mov" ],
"recognizeSensitiveContent": true,
}
Field description in response body:
Node Name (Keyword)
Description
Type
isPublicRead
Whether public read is allowed, unspecified defaults to false. When tenant space settings are with public read permission, partial Read APIs do not need to be specified with an access token. Please refer to the specific API description.
Boolean
isMultiAlbum
Whether it is a multi-album space, default to false
Boolean
allowPhoto
Whether to allow uploading images, default to false
Boolean
allowVideo
Whether to allow uploading video, default to false
Boolean
allowPhotoExtname
Empty array by default. If not empty, upload is allowed only when the file extension is in the list and identified as a photo type. If empty, determine whether it is a photo type dynamically based on the uploaded file extension.
Array
allowVideoExtname
Empty array by default. If not empty, upload is allowed only when the file extension is in the list and identified as a video type. If empty, determine whether it is a video type dynamically based on the uploaded file extension.
Array
recognizeSensitiveContent
Whether to detect sensitive content, default to false
Boolean

Error Codes

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


도움말 및 지원

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

피드백