Querying the Object List of an OBS Bucket
Function
This API is used to obtain the software package list in an OBS bucket.
URI
GET /v1/{project_id}/ss-service/obs/objects
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Tenant's project ID. See Obtaining a Project ID. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
bucket_name |
Yes |
String |
Name of the bucket to be queried. |
|
prefix |
Yes |
String |
Path of the software package to be queried. |
Request
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
Content-Type |
Yes |
String |
Message body type (format). Default value: application/json;charset=utf8. |
|
X-Auth-Token |
Yes |
String |
API calling can be authenticated using a token or AK/SK. If you use a token, this parameter is mandatory and must be set to the token. For details about how to obtain a token, see Obtaining a User Token. |
Response
|
Parameter |
Type |
Description |
|---|---|---|
|
name |
String |
Bucket name. |
|
prefix |
String |
Path of the software package to be queried. |
|
contents |
Array of object |
Object list in an OBS bucket. See Table 5. |
|
location |
String |
Region. |
|
endpoint |
String |
OBS domain name information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
String |
Name of the software package that contains the full path in a bucket. |
|
last_modified |
String |
Last modification time. |
|
size |
Integer |
Software package size. |
|
storage_class |
String |
Software package storage type. |
|
owner |
Object |
Owner information. See Table 6. |
Example Request
None
Example Response
{
"name": "ss-test",
"prefix": "appuser-zip/",
"contents": [
{
"key": "appuser-zip/",
"last_modified": "2025-10-16T08:39:11.579Z",
"size": 0,
"storage_class": "STANDARD",
"owner": {
"id": "6dfd8c167c5945d9baca04685ac628fa",
"display_name": "servicestage-user"
}
},
{
"key": "appuser-zip/demoJavaExample.tar.gz",
"last_modified": "2025-10-16T08:40:38.56Z",
"size": 53003227,
"storage_class": "STANDARD",
"owner": {
"id": "6dfd8c167c5945d9baca04685ac628fa",
"display_name": "servicestage-user"
}
}
],
"location": "test-region",
"endpoint": "https://example.test-region.com:443"
}
Status Code
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
400 |
Bad Request |
Error Code
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