Available in VPC
Request file export to export a file from a data box to a bucket in Object Storage.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
POST | /api/v1/export/apply-file-export |
Request headers
For information about the headers common to all Cloud Data Box APIs, see Cloud Data Box request headers.
Request body
You can include the following data in the body of your request:
Field | Type | Required | Description |
---|---|---|---|
dataBoxNo |
Integer | Required | Data box number
|
nasInstanceNo |
Integer | Required | Source NAS instance number
|
bucketName |
String | Required | Target bucket name
|
fileList |
Array | Required | Export file information |
fileList
The following describes fileList
.
Field | Type | Required | Description |
---|---|---|---|
name |
String | Required | Export file name |
description |
String | Required | Export file description (character)
|
type |
String | Required | Export file type
|
tableDetail |
String | Conditional | Field separator of the table file
|
delimiter |
String | Conditional | Custom separator
|
imageDetail |
String | Conditional | Image file extension
|
modelDetail |
String | Conditional | Analytics model format
|
modelVersion |
String | Conditional | Analytics model version
|
Request example
The request example is as follows:
curl --location --request POST 'https://databox.apigw.ntruss.com/api/v1/import/apply-file-import' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
--data '{
"dataBoxNo": ****,
"nasInstanceNo": ********,
"bucketName": "bckt111",
"fileList": [
{
"name": "T1_member.txt",
"description": "This is a member list file for testing. ID: A random serial number. Name: The name of the fictional character. Job position: Assign virtual position. Department: Assign virtual department.",
"type": "TABLE",
"tableDetail": "TAB"
}
]
}'
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 | - | Export request information |
content
The following describes content
.
Field | Type | Required | Description |
---|---|---|---|
exportNo |
Integer | - | Export request number |
nasInstanceNo |
Integer | - | Source NAS instance number |
bucketName |
String | - | Target bucket name |
nasName |
String | - | Source NAS name |
fileName |
String | - | Export file name |
status |
String | - | Export status
|
Response status codes
For information about the HTTP status codes common to all Cloud Data Box APIs, see Cloud Data Box response status codes.
Response example
The response example is as follows:
{
"totalCount": 1,
"content": [
{
"exportNo": 3294,
"nasInstanceNo": ********,
"bucketName": "bckt111",
"nasName": "nasw1",
"fileName": "T1_member.txt",
"status": "Review requested (before file transfer)"
}
]
}