{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"SFTP V2サーバーエクスポートインテグレーション","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"sftp-v2サーバーエクスポートインテグレーション","__idx":0},"children":["SFTP V2サーバーエクスポートインテグレーション"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このインテグレーションは、SFTPサーバーへのデータアップロードを可能にし、以下をサポートしています："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["複数のファイル形式"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データ圧縮"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["サーバーハンドシェイクアルゴリズム"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件と制限事項","__idx":1},"children":["前提条件と制限事項"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["前提条件"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["ツールベルト"]},"を含むTreasure Dataの基本的な知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["SFTPサーバー"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["制限事項"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["パスプレフィックスには以下の文字を含めることはできません: * ?"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-data-integration-の静的-ip-アドレス","__idx":2},"children":["Treasure Data Integration の静的 IP アドレス"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["セキュリティポリシーで IP ホワイトリストが必要な場合は、接続を成功させるために Treasure Data の IP アドレスを許可リストに追加する必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["リージョンごとに整理された静的 IP アドレスの完全なリストは、次のリンクにあります:"," ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/endpoints/ip-addresses-integrations-result-workers"},"children":["IP Addresses for Integrations"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"基本的な使用方法","__idx":3},"children":["基本的な使用方法"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下の図は、Treasure DataエージェントからSFTPまたは類似のサーバーへデータをエクスポートする典型的な使用シナリオを示しています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191107-183827.62b39633c5da05c46f67e0801cc06a049efc64d21e9e512810da336e11395146.5c56efb7.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"新しい接続の作成","__idx":4},"children":["新しい接続の作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クエリを実行する前に、Treasure コンソールでデータ接続を作成および設定する必要があります。データ接続の一部として、以下の手順を使用してインテグレーションにアクセスするための認証を提供します："]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソールを開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations Hub > Catalog"]},"に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["SFTP_V2"]},"を検索し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Authentication"]},"を選択します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/sftp_v2b.c8f58e8781a6c70bee0ad0cb1255b782c0c4d235094eff59ca1c59e87444e915.e972ba82.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["接続認証情報を入力します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/sftpv2credentials.bca13f7f57ab8c6ff619e66f6eaebe96d234ac91d7b1cc76c411a34be79b320e.e972ba82.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["認証フィールド"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"25%","data-label":"パラメータ"},"children":["パラメータ "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"15%","data-label":"データ型"},"children":["データ型 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"60%","data-label":"説明"},"children":["説明 "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Host  必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["リモートSFTPインスタンスのホスト情報（例：IPアドレス）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Port  必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["リモートSFTPインスタンスの接続ポート。デフォルトのポート番号は22です"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["User  必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["リモートSFTPインスタンスへの接続に使用するユーザー名"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Authentication mode  必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["このインテグレーションは2種類の認証をサポートしています：",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Password：認証にユーザー名とパスワードを使用"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Public / Private key pair：認証に公開鍵と秘密鍵のペアを使用"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Password  オプション"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Authentication Modeで",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Password"]},"が選択されている場合は必須"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Secret key file  オプション"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Authentication Modeで",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["public/private key pair"]},"が選択されている場合は必須"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Passphrase for secret key file  オプション"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["一部のアルゴリズムで必要な秘密鍵ファイルのパスフレーズ"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Retry limit  必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["int"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["接続失敗時のリトライ回数（デフォルト：10）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Timeout  必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["int"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["接続タイムアウト（秒単位、デフォルト：600）"]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]},"を選択し、認証の名前を入力します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"エクスポート用のクエリ結果の設定","__idx":5},"children":["エクスポート用のクエリ結果の設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure コンソールはデータをエクスポートする複数の方法をサポートしています。Data Workbenchからデータをエクスポートするには、以下の手順を完了します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Queries"]},"に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Query"]},"を選択し、クエリを定義します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Export Results"]},"を選択し、データエクスポートの設定を行います。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["既存のインテグレーションを使用するか、新しいインテグレーションを作成します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["エクスポートパラメータを設定し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/sftp_v2-server-export-integration-2025-04-06.c5713f1e1dc5e65b79f243661b81a0962c724121d6b5acdc5bc8d7bccb69eed7.e972ba82.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["エクスポート設定パラメータ"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"25%","data-label":"パラメータ"},"children":["パラメータ "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"15%","data-label":"データ型"},"children":["データ型 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"60%","data-label":"説明"},"children":["説明 "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Is user directory Root?  必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["選択した場合、ユーザーディレクトリがルートディレクトリとして扱われます（例：'/home/treasure-data' を '/' として扱う）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Path prefix  必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ファイルが保存されるファイルパス"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Rename file after upload finish  必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["選択した場合、ファイルは",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".tmp"]},"サフィックス付きでSFTPにアップロードされ、データ転送完了後にサフィックスが削除されます。一部のデータ統合ツールはファイルの存在を検出して独自のタスクをトリガーしようとします。このオプションはそのようなケースに有用です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Format  必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["csv - カンマ区切り（デフォルト）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["tsv - タブ区切り"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Encoders  必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["None - エンコーダーは適用されません（デフォルト）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["GZ - アップロード前にファイルがgzipで圧縮されます"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["BZIP2 - アップロード前にファイルがbzip2で圧縮されます"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["PGP Encryption - アップロード前にファイルが公開鍵で暗号化されます"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Public Key  EncoderがPGP encryptionの場合は必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["アップロード前にファイルを暗号化するために使用される公開鍵"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Key Identifier  EncoderがPGP encryptionの場合は必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ファイルを保護するために使用される暗号化サブキーのKey IDを指定します。マスターキーは暗号化プロセスから除外されます。"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Armor  オプション"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["check box"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ASCIIアーマーを使用するかどうか"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Compression Type  オプション"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ファイルを圧縮するために使用される圧縮アルゴリズムを定義します。ファイルはSFTPサーバーへのアップロード前に暗号化の前に圧縮されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["注意：アップロード前にファイルを圧縮してから暗号化してください。復号化すると、ファイルは.gzや.bz2などの圧縮形式に戻ります。"]}]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Header line?  必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["選択した場合、カラム名が最初の行として追加されます。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Delimiter  必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["区切り文字：",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Default - 選択したFormatに従う"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[","]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Tab"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["|"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Quote policy  オプション"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["クォートのポリシー：",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ALL"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["MINIMAL：区切り文字、クォート、または行末文字を含むフィールドにのみクォート文字を追加します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["NONE"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Null string  必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["クエリ結果のnull値の表示方法：",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Default - 選択したFormatに従う"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["空文字列"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["\\N"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["NULL"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["null"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["End-of-line character  必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["EOL（行末）文字：",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["CRLF（デフォルト）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["LF"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["CR"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Temp filesize threshold  必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エクスポートデータがこのしきい値より大きい場合、アップロードはしきい値自体をバッチサイズとしてバッチで実行されます。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["channel is broken"]},"エラーが発生した場合、この値を減らすとエラーが解決する可能性があります。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Write buffer size (KB)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["int"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["書き込みバッファのサイズ（KB単位、オプション、デフォルト：192、最小：8、最大：1024）。SFTPパケットサイズ制限が厳格なサーバー（例：IBM Sterling File Gateway）では、128以下に減らしてください。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"audience-studio-で-segment-をアクティベートする","__idx":6},"children":["Audience Studio で Segment をアクティベートする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Audience Studio で activation を作成することで、segment データをターゲットプラットフォームに送信することもできます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Audience Studio"]}," に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["parent segment を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ターゲット segment を開き、右クリックして、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Activation"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Details"]}," パネルで、Activation 名を入力し、前述の Configuration Parameters のセクションに従って activation を設定します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Output Mapping"]}," パネルで activation 出力をカスタマイズします。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/ouput.b2c7f1d909c4f98ed10f5300df858a4b19f71a3b0834df952f5fb24018a5ea78.8ebdf569.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Attribute Columns",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Export All Columns"]}," を選択すると、変更を加えずにすべての列をエクスポートできます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add Columns"]}," を選択して、エクスポート用の特定の列を追加します。Output Column Name には、Source 列名と同じ名前があらかじめ入力されます。Output Column Name を更新できます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add Columns"]}," を選択し続けて、activation 出力用の新しい列を追加します。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["String Builder",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add string"]}," を選択して、エクスポート用の文字列を作成します。次の値から選択します:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["String: 任意の値を選択します。テキストを使用してカスタム値を作成します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Timestamp: エクスポートの日時。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segment Id: segment ID 番号。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segment Name: segment 名。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Audience Id: parent segment 番号。"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," を設定します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/snippet-output-connector-on-audience-studio-2024-08-28.a99525173709da1eb537f839019fa7876ffae95045154c8f2941b030022f792c.8ebdf569.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["スケジュールを定義する値を選択し、オプションでメール通知を含めます。"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":7},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["batch journey の activation を作成する必要がある場合は、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/journey-orchestration/batch/creating-a-batch-journey-activation"},"children":["Creating a Batch Journey Activation"]}," を参照してください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"オプションcliを使用したエクスポートインテグレーション","__idx":7},"children":["（オプション）CLIを使用したエクスポートインテグレーション"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt"]},"を使用して、CLIからSFTPへのクエリ結果のエクスポートをトリガーできます。td queryコマンドの--resultオプションを使用してエクスポートジョブのパラメータを指定する必要があります。詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/tools/cli-and-sdks/querying-and-importing-data-to-treasure-data-from-the-command-line"},"children":["コマンドラインからのTreasure Dataへのデータのクエリとインポート"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションの形式はJSONで、一般的な構造は以下の通りです："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ユーザー名とパスワードを使用した認証："]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"type\": \"sftp_v2\",\n  \"host\": \"SFTPサーバーのIPまたはホスト\",\n  \"port\": \"オープンポート\",\n  \"path_prefix\": \"/upload/2024Aug29/TC01.csv\",\n  \"temp_file_threshold\": \"一時ファイルのサイズ\",\n  \"timeout\": 600,\n  \"user_directory_is_root\": false,\n  \"rename_file_after_upload\": true,\n  \"auth_method\": \"password\",\n  \"username\": \"ログインユーザー\",\n  \"password\": \"auth_methodがpasswordの場合のユーザーパスワード\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["公開鍵/秘密鍵ペアを使用した認証"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"type\": \"sftp_v2\",\n  \"host\": \"SFTPサーバーのIPまたはホスト\",\n  \"port\": \"オープンポート\",\n  \"path_prefix\": \"/upload/2024Aug29/TC01.csv\",\n  \"temp_file_threshold\": \"一時ファイルのサイズ\",\n  \"timeout\": 600,\n  \"user_directory_is_root\": false,\n  \"rename_file_after_upload\": true,\n  \"auth_method\": \"key_pair\",\n  \"secret_key_file\": \"秘密鍵ファイルの内容\",\n  \"secret_key_passphrase\": \"td@123\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"cliパラメータ","__idx":8},"children":["CLIパラメータ"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"15%","data-label":"名前"},"children":["名前 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"45%","data-label":"説明"},"children":["説明 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"15%","data-label":"値"},"children":["値 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"15%","data-label":"デフォルト値"},"children":["デフォルト値 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"10%","data-label":"必須"},"children":["必須 "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["typeは",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["sftp_v2"]},"である必要があります"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NULL"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["YES"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["host"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["IPアドレスまたはドメイン名で指定されたSFTPサーバーのアドレス",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["192.168.1.1"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["eu-west-1.sftpcloud.io"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NULL"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["YES"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["port"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SFTPサーバーとの接続用ポート"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["22"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NO"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["user_directory_is_root"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["一部のサーバーでは、ユーザーはホームディレクトリをルートディレクトリとして持ちます。例えば、johnという名前のユーザーは/home/johnというルートディレクトリを持つことができます。そのユーザーが/home/john/day1/my_data.csvというディレクトリにファイルをアップロードしたい場合、2つのオプションがあります：",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["user_directory_is_rootをtrueに設定し、このpath_prefixを使用：/day1/my_data.csv"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["user_directory_is_rootをfalseに設定し、このpath_prefixを使用：/home/john/day1/my_data.csv"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["False"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NO"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["path_prefix"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SFTPサーバー上でファイルをアップロードしたいパス。path_prefixの値は、user_directory_is_rootがtrueかfalseかによって異なります。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NULL"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["YES"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["rename_file_after_upload"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["アップロード完了後にファイルの名前を変更するかどうかを決定します"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["False"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NO"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["temp_file_threshold"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エクスポート中に使用される一時ファイルのサイズ。一時ファイルサイズに達すると、インテグレーションはそのファイルからデータを読み取り、リモートファイルに書き込み、一時ファイルを削除します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["5,368,709,120（5 GB）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NO"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["auth_method"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SFTPサーバーとの認証に使用される認証タイプを決定します：",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ユーザー名/パスワード"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["公開鍵/秘密鍵ペア"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サポートされている値：",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["password"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["key_pair"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["key_pair"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["YES"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["username"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["認証に使用されるユーザー名"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NULL"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["YES"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["password"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["認証に使用されるパスワード"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NULL"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["YES（auth_methodがpasswordの場合）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["secret_key_file"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証に使用される秘密鍵ファイル。ファイルの内容は1行に整形する必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"td ... --result \\\n'{\"type\":\"sftp_v2\", \"secret_key_file\": \"-----BEGIN OPENSSH PRIVATE KEY-----\\nline1\\nline2\\nline3\\n-----END OPENSSH PRIVATE KEY-----\\n\\n\"}'\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["整形前の秘密鍵ファイルの内容："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"-----BEGIN OPENSSH PRIVATE KEY-----\nline1\nline2\nline3\n-----END OPENSSH PRIVATE KEY-----\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["整形後"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"-----BEGIN OPENSSH PRIVATE KEY-----line1line2line3-----END OPENSSH PRIVATE KEY-----\n"},"children":[]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["NULL"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["YES（auth_methodがkey_pairの場合）"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["secret_key_passphrase"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["秘密鍵がパスワード付きで生成された場合、ここにそのパスワードを入力します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NULL"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NO"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["sequence_format"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["アップロードされるファイルのサフィックス名。例：\"%03d.%02d\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["空白"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NO"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["format"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["アップロードされるファイルの出力形式"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サポートされている値：",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["csv"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["tsv"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["csv"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NO"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["encoders"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["出力のエンコーダータイプを指定します"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サポートされている値：",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["\"\""]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["gz"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["bzip2"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["encrypt_pgp"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\"\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NO"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["public_key"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["暗号化に使用する公開鍵"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["key_identifier"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ファイルを保護するために使用される暗号化サブキーのKey IDを指定します。マスターキーは暗号化プロセスから除外されます。（string、必須）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["armor"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["暗号化された出力にASCIIアーマーを使用します（boolean）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["compression_type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["暗号化する前にデータを圧縮するかどうかを決定する圧縮タイプ。"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["サポートされている値"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["gzip"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["bzip2"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["none"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["zip_builtin"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["zlib_builtin"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["bzip2_builtin"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["注意：アップロード前にファイルを圧縮してから暗号化してください。復号化すると、ファイルは.gzや.bz2などの圧縮形式に戻ります。"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["delimiter"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["カラム区切り文字"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サポートされている値：",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["\",\""]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["\"\\t\""]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["\"tab\""]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["\"|\""]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\",\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NO"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["quote_policy"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クォートの処理ポリシー"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["サポートされている値："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ALL：選択した場合、すべての値がダブルクォート（\"\"）で囲まれます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["MINIMAL：選択した場合、埋め込まれたクォート（\"）を含む値は、連続したクォートのペア（\"\"）で表示されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["NONE：選択した場合、埋め込まれたクォートに対するエスケープは適用されません。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ポリシーALLのコード例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["設定："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"quote_policy: ALL,\nquote: \"'\",\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["出力"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"'id'|'column01'|'column02'|'column03'|'column04'|'column05'\n'1'|'data01'|'data02'|'data03'|'data04'|'data05'\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ポリシーMINIMALのコード例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["設定："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"quote_policy: MINIMAL,\nquote: \"'\",\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["出力"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"id|column01|column02|column03|column04|column05\n1|data01|data02|data03|data04|data05\n"},"children":[]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["quote"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クォートにシングルクォートまたはダブルクォートを使用するかを決定します。"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["シングルクォート"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["設定"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"quote_policy: ALL,\nquote: \"'\",\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["出力"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"'id'|'column01'|'column02'\n'1'|'data01'|'data02'\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ダブルクォート"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["設定"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"quote_policy: ALL,\nquote: \"\\\"\",\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["出力"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"\"id\"|\"column01\"|\"column02\"\n\"1\"|\"data01\"|\"data02\"\n"},"children":[]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["null_string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["nullカラムのデフォルト値を決定します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サポートされている値：",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["\"\""]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["\\N"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["NULL"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\"\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["newline"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["CSVファイルで新しい行を開始する方法を決定します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サポートされている値：",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CRLF"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LF"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CR"]}]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CRLF"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["write_buffer_size_kb"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["書き込みバッファのサイズ（KB単位、オプション、デフォルト：192、最小：8、最大：1024）。SFTPパケットサイズ制限が厳格なサーバー（例：IBM Sterling File Gateway）では、128以下に減らしてください。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["192"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"使用例","__idx":9},"children":["使用例"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["パスワード認証を使用する場合"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td --database your_db --wait \"SELECT email FROM (VALUES ('test01@test.com')) tbl(email)\" \\\n--type presto \\\n--result '{\"type\":\"sftp_v2\",\"host\":\"your_ip\",\"port\": 22,\"auth_method\":\"password\",\"username\":\"user_name\",\"password\":\"your_pass\", \"user_directory_is_root\": true, \"rename_file_after_upload\": true,\"path_prefix\":\"/sftp/2024aug/test.csv\"}'\n","lang":"bash"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["パスワード認証とデータ圧縮を使用する場合"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td --database your_db --wait \"SELECT email FROM (VALUES ('test01@test.com')) tbl(email)\" \\\n--type presto \\\n--result '{\"type\":\"sftp_v2\",\"host\":\"your_ip\",\"port\": 22,\"auth_method\":\"password\",\"username\":\"user_name\",\"password\":\"password\",\"user_directory_is_root\":true,\"path_prefix\":\"/sftp/2024aug/test.csv\",\"rename_file_after_upload\":true,\"format\": \"csv\", \"compression\": \"gz\",\"header_line\":true,\"quote_policy\":\"ALL\",\"delimiter\":\"\\t\",\"null_string\":\"\",\"newline\":\"CRLF\",\"temp_file_threshold\":0,\"sequence_format\":\".%01d%01d\"}'\n","lang":"bash"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["パスワードフレーズ付きの公開鍵/秘密鍵認証を使用する場合"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["秘密鍵ファイルの内容（パスワードフレーズは",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["123"]},"）："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"-----BEGIN OPENSSH PRIVATE KEY-----\nline1\nline2\nline3\n-----END OPENSSH PRIVATE KEY-----\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CLI用の形式："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"-----BEGIN OPENSSH PRIVATE KEY-----\\nline1\\nline2\\nline3\\n-----END OPENSSH PRIVATE KEY-----\\n\\n\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CLIコマンド："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td --database your_db --wait \"SELECT email FROM (VALUES ('test01@test.com')) tbl(email)\" \\\n--type presto \\\n--result '{\"type\":\"sftp_v2\",\"host\":\"your_ip\",\"port\": 22,\"auth_method\":\"key_pair\",\"username\":\"user_name\", \"path_prefix\": \"/sftp/2024aug/test.csv\",\"sequence_format\":\"\",\"max_connection_retry\":5,\"secret_key_passphrase\":\"123\",\"timeout\":600,\"secret_key_file\":\"-----BEGIN OPENSSH PRIVATE KEY-----\\nline1\\nline2\\nline3\\n-----END OPENSSH PRIVATE KEY-----\\n\\n\"}'\n","lang":"bash"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["新しい顧客を作成する場合"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td --database luan_db --wait \"SELECT customer_list_id,first_name,last_name,birthday,company_name,email,fax,gender,job_title,phone_business,phone_home,phone_mobile,second_name,credentials FROM (VALUES ('site_1','fname_201','lname_1','1990-05-12','Test Company','test01@example.com','03-0000-0000','male','Engineer','03-0000-0001','03-0000-0002','090-0000-0000','second_name','credential_1')) AS t(customer_list_id,first_name,last_name,birthday,company_name,email,fax,gender,job_title,phone_business,phone_home,phone_mobile,second_name,credentials)\" \\\n--type presto \\\n--result '{\"type\":\"sftp_v2\",\"host\":\"your_ip\",\"port\": 22,\"auth_method\":\"password\",\"username\":\"user_name\",\"password\":\"your_pass\",\"user_directory_is_root\":true,\"path_prefix\":\"/sftp/2024aug/customer.csv\",\"rename_file_after_upload\":true}'\n","lang":"bash"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["暗号化エンコーダーを使用する場合"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query -d luan_db -w \"select * from luan_db.sfcc_500k\" -T presto --result '{\n  \"type\": \"sftp_v2\",\n  \"host\": \"ホストサーバー\",\n  \"auth_method\": \"password\",\n  \"username\": \"ユーザー名\",\n  \"password\": \"パスワード\",\n  \"path_prefix\": \"cli/test_27_3_500K.csv.bz2.gpg\",\n  \"file_ext\": \".gpg\",\n  \"rename_file_after_upload\": false,\n  \"formatter\": {\n    \"type\": \"csv\",\n    \"quote_policy\": \"MINIMAL\",\n    \"delimiter\": \",\",\n    \"null_string\": \"null\",\n    \"newline\": \"\\n\"\n  },\n  \"compression\": \"encrypt_pgp\",\n  \"public_key\": \"公開鍵\",\n  \"key_identifier\": \"キー識別子\",\n  \"armor\": true/false,\n  \"compression_type\": \"bzip2/gzip/none\"\n}'\n","lang":"bash"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"オプションその他の考慮事項","__idx":10},"children":["（オプション）その他の考慮事項"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure ワークフロー内で、このインテグレーションを使用してデータをエクスポートするよう指定できます。サンプルワークフローについては、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/treasure-data/treasure-boxes/tree/master/td/sftp"},"children":["Treasure Boxes"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["結果エクスポートは、ターゲット先に定期的にデータをアップロードするように",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/job-management/scheduling-jobs-using-td-console"},"children":["スケジュール"]},"できます"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ほとんどのインポートおよびエクスポートインテグレーションは、より高度なデータパイプラインに関与するためにTreasure ワークフローに追加できます。詳細については",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/using-td-workflow-with-td-integrations"},"children":["こちら"]},"を参照してください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"参考資料","__idx":11},"children":["参考資料"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Embulk-encoder-Encryptionドキュメント：",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/embulk-encoder-encryption-pgp"},"children":["embulk-encoder-encryption-pgp"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"sftp-data-connectorのfaq","__idx":12},"children":["SFTP Data ConnectorのFAQ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Q: SFTPサーバーに接続できません。どうすればよいですか？"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A: 以下の点を確認してください："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["プロトコルが有効であることを確認してください。",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["SFTP"]},"を使用する場合は、このインテグレーションを使用できます。",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["FTP"]},"/",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["FTPS"]},"を使用する場合は、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/ftp-server-import-integration"},"children":["FTPサーバーインポートインテグレーション"]},"を試してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ファイアウォールを使用している場合は、許可されているIPレンジとポートを確認してください。サーバー管理者はセキュリティ上の理由から、デフォルトのポート番号をTCP 22から変更することがあります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["秘密鍵が",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["OpenSSH"]},"形式であることを確認してください。Treasure Dataは「PuTTY」などの他の形式をサポートしていません。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure Dataは",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.openssh.com/releasenotes.html"},"children":["OpenSSH 7.8"]},"以降のデフォルト形式の秘密鍵をサポートしていません。'-m PEM'オプションを使用して鍵を再生成してください。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Q: SFTPサーバー上にアップロードしたファイルが見つかりません。何が起こったのですか？"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A: SFTPサーバーがAppendモードをサポートしていない場合、インテグレーションは「SFTP Exception: no such file.」というエラーでファイルを更新できない可能性があります。安定性の理由から、インテグレーションはファイルコンテンツをバッチでアップロードします。そのため、SFTPサーバーでAppendモードを有効にする必要があります。SFTPサーバーでAppendモードを有効にできない場合は、この機能をバイパスするためにtemp_file_thresholdを0に設定する必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["注意：暗号化してアップロードする前に、必ずファイルを圧縮してください。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["非組み込み暗号化を使用して復号化すると、ファイルは.gzや.bz2などの圧縮形式に戻ります。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["組み込み暗号化を使用して復号化すると、ファイルは生データに戻ります。"]}]}]}]},"headings":[{"value":"SFTP V2サーバーエクスポートインテグレーション","id":"sftp-v2サーバーエクスポートインテグレーション","depth":1},{"value":"前提条件と制限事項","id":"前提条件と制限事項","depth":2},{"value":"Treasure Data Integration の静的 IP アドレス","id":"treasure-data-integration-の静的-ip-アドレス","depth":2},{"value":"基本的な使用方法","id":"基本的な使用方法","depth":2},{"value":"新しい接続の作成","id":"新しい接続の作成","depth":2},{"value":"エクスポート用のクエリ結果の設定","id":"エクスポート用のクエリ結果の設定","depth":2},{"value":"Audience Studio で Segment をアクティベートする","id":"audience-studio-で-segment-をアクティベートする","depth":2},{"value":"（オプション）CLIを使用したエクスポートインテグレーション","id":"オプションcliを使用したエクスポートインテグレーション","depth":2},{"value":"CLIパラメータ","id":"cliパラメータ","depth":3},{"value":"使用例","id":"使用例","depth":3},{"value":"（オプション）その他の考慮事項","id":"オプションその他の考慮事項","depth":2},{"value":"参考資料","id":"参考資料","depth":2},{"value":"SFTP Data ConnectorのFAQ","id":"sftp-data-connectorのfaq","depth":2}],"frontmatter":{"seo":{"title":"SFTP V2サーバーエクスポートインテグレーション"}},"lastModified":"2026-06-01T09:47:58.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/sftp_v2-server-export-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}