--- title: "create-file-export" slug: "create-file-export" updated: 2026-09-17T09:57:35Z published: 2026-09-17T09:57:35Z canonical: "api.ncloud-docs.com/create-file-export" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # create-file-export VPC環境で利用できます。 Boxのファイルを Object Storageのバケットにエクスポートするためにファイルの持ち出しを申請します。 ## リクエスト リクエスト形式を説明します。リクエスト形式は次の通りです。 | メソッド | URI | | --- | --- | | POST | /api/v1/export/create-file-export | ### リクエストヘッダ Datafence APIで共通して使用されるヘッダの詳細は、[Datafenceのリクエストヘッダ](/docs/ja/datafence-overview#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)をご参照ください。 ### リクエストボディ リクエストボディの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `fenceId` | Integer | Required | Datafence番号 - [get-datafence](/docs/ja/get-datafence)を参照 | | `boxId` | Integer | Required | Box番号 - [get-box-list](/docs/ja/get-box-list)を参照 | | `sourceNasInstanceNo` | Integer | Required | Source NASインスタンス番号 - [get-source-nas-list](/docs/ja/get-source-nas-list)を参照 | | `sourceFilePathList` | List | Required | 持ち出し申請ファイル名リスト - 同時持ち出し申請可能なファイル数: 10個 - ファイル1個当たりの最大サイズ: 2GB - ファイル名: {持ち込み番号(`fileId`)}_{Sourceファイル名(`sourceFilePath`)}に指定 - [get-import-list](/docs/ja/get-import-list)を参照 | | `targetBucketName` | String | Required | Targetバケット名 | | `fileDescription` | String | Required | 持ち出し申請ファイルに関する説明 - 1~1000文字 | | `exportPurpose` | String | Required | 持ち出しの目的 - 1~1000文字 | | `description` | String | Required | 持ち出し申請に関する説明 - 0~50文字 | ### リクエスト例 リクエストのサンプルコードは次の通りです。 ``` curl --location --request POST 'https://datafence.apigw.ntruss.com/api/v1/export/create-file-export' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \ --data '{ "fenceId": 26, "boxId": 74, "sourceNasInstanceNo": ********, "sourceFilePathList": ["108_datafence001.csv"], "targetBucketName": "test-bucket-for-fence", "fileDescription": "テスト用ファイル", "exportPurpose": "ファイル持ち出しテスト", "description": "ファイル持ち出しテスト" }' ``` ## レスポンス レスポンス形式を説明します。 ### レスポンスボディ レスポンスボディの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `message` | String | - | API処理結果メッセージ | ### レスポンスステータスコード Datafence APIで共通して使用されるレスポンスステータスコードの詳細は、[Datafence APIのレスポンスステータスコード](/docs/ja/datafence-overview#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)をご参照ください。 ### レスポンス例 レスポンスのサンプルコードは次の通りです。 ``` { "message": "File export requested." } ```