Available in VPC
Get the list of file import requests in a box.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | /api/v1/import/get-import-list |
Request headers
For information about the headers common to all Datafence APIs, see Datafence request headers.
Request query parameters
You can use the following query parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
fenceId |
Integer | Required | Datafence number
|
boxId |
Integer | Required | Box number
|
status |
String | Optional | Import request status code |
from |
String | Optional | Query start date and time
|
to |
String | Optional | Query end date and time
|
page |
Integer | Optional | Page number
|
size |
Integer | Optional | Number of items per page
|
Request example
The request example is as follows:
curl --location --request GET 'https://datafence.apigw.ntruss.com/api/v1/import/get-import-list?fenceId=26&boxId=74&status=IMPORTED&from=20250401000000&to=20250430000000' \
--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 |
---|---|---|---|
totalCount |
Integer | - | Number of response results |
content |
Array | Import request list |
content
The following describes content
.
Field | Type | Required | Description |
---|---|---|---|
fileId |
Integer | - | Import request number |
fenceId |
Integer | - | Datafence number |
boxId |
Integer | - | Box number |
boxName |
String | - | Box name |
description |
String | - | Description for the import request |
sourceBucketName |
String | - | Source bucket name |
sourceFilePath |
String | - | Import request target file name |
targetNasName |
String | - | Target NAS name |
statusCode |
String | - | Import request status code |
statusName |
String | - | Import request status name |
createDate |
String | - | Import request date and time
|
completeDate |
String | - | Import completion date and time
|
Response status codes
For information about the HTTP status codes common to all Datafence APIs, see Datafence API response status codes.
Response example
The response example is as follows:
{
"totalCount": 3,
"content": [
{
"fileId": 113,
"fenceId": 26,
"boxId": 74,
"boxName": "box1",
"sourceBucketName": "test-bucket-for-fence",
"sourceFilePath": "archive3.zip",
"targetNasName": "74box1",
"description": "File import request",
"statusCode": "INITIALIZED",
"statusName": "Import requested (before file transfer)",
"createDate": "2025-04-25T11:22:07+09:00"
},
{
"fileId": 112,
"fenceId": 26,
"boxId": 74,
"boxName": "box1",
"sourceBucketName": "test-bucket-for-fence",
"sourceFilePath": "archive2.zip",
"targetNasName": "74box1",
"description": "File import request",
"statusCode": "UPLOADING",
"statusName": "Import requested (file transfer in progress)",
"createDate": "2025-04-25T11:22:07+09:00"
},
{
"fileId": 111,
"fenceId": 26,
"boxId": 74,
"boxName": "box1",
"sourceBucketName": "test-bucket-for-fence",
"sourceFilePath": "archive.zip",
"targetNasName": "74box1",
"description": "File import request",
"statusCode": "IMPORTED",
"statusName": "Import completed",
"createDate": "2025-04-25T11:22:07+09:00",
"completeDate": "2025-04-25T11:22:44+09:00"
}
]
}