Obtaining the File Information of the Current Bucket
Function
This API is used to obtain the files in a specified OBS bucket.
Calling Method
For details, see Calling APIs.
URI
GET /v1/{project_id}/sdg/watermark/bucket-files
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
bucket_name |
Yes |
String |
Bucket name. |
|
limit |
No |
Integer |
Number of records displayed on each page. |
|
marker |
No |
String |
Pagination marker. |
|
only_folder |
No |
Boolean |
Whether to display only folders. |
|
prefix |
No |
String |
File prefix. |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
files |
Array of ObsFile objects |
File list. |
|
is_truncated |
Boolean |
Whether to truncate the page. |
|
next_marker |
String |
Marker of the next page. |
Example Requests
None
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Obtained. |
|
401 |
Unauthorized. |
|
403 |
Access denied. |
|
404 |
Bucket not found. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot