tencent cloud

Smart Media Hosting

Product Introduction
Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
Purchase Guide
Quick Start
Create Media Library
Initiate request
Service Level API Document
History
Introduction
API Category
Making API Requests
PaaS Service APIs
Official Cloud Disk APIs
Data Types
Error Codes
Business Level API Document
Introduction
Access Token Operation API
Tenant Space Operation API
File Operation API
Directory or Album Operation API
Recycle Bin Operation API
Quota Operation API
Query Task Operation API
Search Operation API
Historical Version Operations API
Directory and File Batch Operation API
Collection Operation API
Error Codes
SDK Documentation
Android SDK
iOS SDK
HarmonyOS SDK
FAQs
Enterprise Network Disk
Product Introduction
Purchase Guide
Quick Start
FAQs
Service Level Agreement
Glossary

Listing Tenant Space

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2026-01-07 14:45:20

Description

List tenant space information.
Note:
To list all tenant spaces, admin or space_admin permissions are required; otherwise, only the tenant spaces created by the user represented by the current access token will be listed. For permissions, see Generate Access Token Interface.

Request

Request Example

GET /api/v1/space/{LibraryId}/list?access_token={AccessToken}&marker={Marker}&limit={Limit}

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
AccessToken
Access token, see generate access token
String
Yes
Marker
Used for sequential listing with pagination identification, i.e., the nextMarker field returned from the previous request.
String
No
Limit
Used for sequential listing with pagination, the tenant space quantity limit defaults to 1000, range [1,1000].
String
No

Request Body

This request does not have a request body.

Response

Response code

Successful retrieval, returns HTTP 200 OK.

Response Body

{
"list":[
{
"spaceId": "space04fzo07fdq61b",
"userId": "",
"creationTime": "2020-10-16T02:31:50.000Z"
},
{
"spaceId": "space3p5klbgcwndnt",
"userId": "",
"creationTime": "2020-10-16T02:31:50.000Z"
}
],
"marker": "eyJmb3JtYXQiOjIsInRhYmх1X21kIjoхLCJzсGFjZV9pZCI6IiJ9",
"nextMarker":"eyJmb3JtYXQiOjIsInRhYmх1X21kIjoхLCJzсGFjZV9pZCI6IiJ9"
}
Response body field description:
Response
Description
Type
List
Record tenant space information
List
marker
Identification for paginated listing
String
nextMarker
Identification for sequential page listing. If no more, this field does not exist.
String
The List contains the following parameters:
Node Name (Keyword)
Description
Type
spaceId
Tenant Space ID
String
userId
Creator User ID
String
creationTime
Tenant space creation time, a date and time string in ISO 8601 format, such as 2020-10-14T10:17:57.953Z
String
Note:
The List is displayed only when nextMarker in the response body is empty.

Error Codes

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


Ajuda e Suporte

Esta página foi útil?

comentários