Available in VPC
Get the list of Object Storage buckets that can import data.
Note
Check the permissions for a bucket based on the access key entered upon request.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | /api/v2/import/getBucketList/{serviceGroupInstanceNo} (Korea Region) |
GET | /api/sgn-v2/import/getBucketList/{serviceGroupInstanceNo} (Singapore Region) |
GET | /api/jpn-v2/import/getBucketList/{serviceGroupInstanceNo} (Japan Region) |
Request headers
For information about the headers common to all Search Engine Service APIs, see Search Engine Service request headers.
Request path parameters
You can use the following path parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
serviceGroupInstanceNo |
Integer | Required | Cluster instance number
|
Request example
The request example is as follows:
curl --location --request GET 'https://vpcsearchengine.apigw.ntruss.com/api/v2/import/getBucketList/1037*****' \
--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 |
---|---|---|---|
code |
Integer | - | Response code |
message |
String | - | Response message |
result |
Object | - | Response result |
result.bucketList |
Array | - | Bucket list |
requestId |
String | - | ID for the request
|
result.bucketList
The following describes result.bucketList
.
Field | Type | Required | Description |
---|---|---|---|
name |
String | - | Bucket name |
bytesUsed |
Integer | - | Bucket size |
objectCount |
Integer | - | Number of objects |
creationTime |
Integer | - | Bucket creation date and time
|
resourceId |
String | - | Bucket resource ID |
Response status codes
For response status codes common to all Search Engine Service APIs, see Search Engine Service response status codes.
Response example
The response example is as follows:
{
"code": 0,
"message": "SUCCESS",
"result": {
"bucketList": [
{
"name": "bk.c",
"bytesUsed": 12763741,
"objectCount": 6,
"creationTime": 1742888127098,
"resourceId": "Bucket/bk.c/174288*******"
},
...
{
"name": "bk.ses.snapshot",
"bytesUsed": 540095,
"objectCount": 123,
"creationTime": 1742520149085,
"resourceId": "Bucket/bk.ses.snapshot/174252*******"
},
...
]
},
"requestId": "e086393d-****-****-****-2aed3fb5b447"
}