tencent cloud

Smart Media Hosting

Recycle Bin List

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-01-07 11:03:10

Introduction

This document provides an API overview about listing recycle bin items and SDK sample code.
API
Operation Description
List Recycle Bin Items

Listing Recycle Bin Projects

Feature Overview

List Recycle Bin Items.

Example Code

List Recycle Bin Items
try {
val recycledContents: RecycledContents = smh.listRecycled(
//page number
page = 1,
//number of items per page
pageSize = 100,
sorting method
orderType = OrderType.NAME,
sorting order
orderDirection = OrderDirection.ASC
)
//Recycle bin list. Check the RecycledContents entity for other numbers etc.
val contents = recycledContents.contents
} catch (e: Exception) {
e.printStackTrace()
}
List via marker + limit
try {
val recycledContents: RecycledContents = smh.listRecycledWithMarker(
//ID for sequential page listing
marker = 100,
//Limit for local project count in sequential page listing
limit = 100,
//ETag of current directory
eTag = "eTag",
sorting method
orderType = OrderType.NAME,
sorting order
orderDirection = OrderDirection.ASC
)
//Recycle bin list. Check the RecycledContents entity for other numbers etc.
val contents = recycledContents.contents
} catch (e: Exception) {
e.printStackTrace()
}


도움말 및 지원

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

피드백