Available in VPC
Get the list of objects in an Object Storage bucket integrated with a Cloud Hadoop cluster.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | POST | /vhadoop/v2/getCloudHadoopObjectList |
This guide is based on the GET method. POST method call tests can be performed through Swagger in the API Gateway service of the NAVER Cloud Platform console.
Request headers
For information about the headers common to all Cloud Hadoop APIs, see Cloud Hadoop request headers.
Request query parameters
You can use the following query parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
regionCode |
String | Optional | Region code
|
bucketName |
String | Required | Bucket name |
prefix |
String | Optional | Object name prefix
|
delimiter |
String | Optional | Delimiter character
|
maxKeys |
String | Optional | Maximum number of files to display in the response |
marker |
String | Optional | Response start point
|
responseFormatType |
String | Optional | Format of the response data
|
Request example
The request example is as follows:
curl --location --request GET 'https://ncloud.apigw.ntruss.com/vhadoop/v2/getCloudHadoopObjectList?regionCode=KR&bucketName=bk4hadoop&prefix=CONFIG&delimiter=%2FV2&responseFormatType=json' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
getCloudHadoopObjectListResponse |
Object | - | Response result |
getCloudHadoopObjectListResponse.commonPrefixList |
Array | - | List of objects with a common prefix |
getCloudHadoopObjectListResponse.requestId |
String | - | ID for the request
|
getCloudHadoopObjectListResponse.returnCode |
String | - | Response code |
getCloudHadoopObjectListResponse.returnMessage |
String | - | Response message |
Response status codes
For response status codes common to all Cloud Hadoop APIs, see Cloud Hadoop response status codes.
Response example
The response example is as follows:
{
"getCloudHadoopObjectListResponse": {
"commonPrefixList": [
"CONFIG-BACKUP/V2"
],
"cloudHadoopObjectList": [
{
"key": "CONFIG-BACKUP/",
"lastModified": "2025-02-25T10:03:37+0900",
"size": 0
},
{
"key": "CONFIG-BACKUP/V1/",
"lastModified": "2025-02-28T09:26:39+0900",
"size": 0
},
{
"key": "CONFIG-BACKUP/V1/cluster01_2025-02-20-16-40-52_config.tar",
"lastModified": "2025-02-28T09:26:52+0900",
"size": 33660
},
{
"key": "CONFIG-BACKUP/cluster01_2025-02-20-16-40-52_config.tar",
"lastModified": "2025-02-20T16:41:00+0900",
"size": 33660
},
{
"key": "CONFIG-BACKUP/cluster01_2025-02-21-14-16-09_config.tar",
"lastModified": "2025-02-21T14:16:14+0900",
"size": 33652
},
{
"key": "CONFIG-BACKUP/cluster01_2025-02-21-14-17-01_config.tar",
"lastModified": "2025-02-21T14:17:07+0900",
"size": 33662
},
{
"key": "CONFIG-BACKUP/cluster01_2025-02-25-10-03-31_config.tar",
"lastModified": "2025-02-25T10:03:37+0900",
"size": 33653
}
],
"requestId": "e08df7b1-****-****-****-1f3cc3516a4a",
"returnCode": "0",
"returnMessage": "success"
}
}